Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indent-blakline / nvim-colorize not found??? #166

Closed
Emaleth opened this issue Feb 10, 2023 · 10 comments
Closed

indent-blakline / nvim-colorize not found??? #166

Emaleth opened this issue Feb 10, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@Emaleth
Copy link

Emaleth commented Feb 10, 2023

screenshot_2023-02-10-211913
screenshot_2023-02-10-212119

    nixvim = {
      extraPackages = with pkgs; [
        ripgrep
        fd
      ];
      extraPlugins = with pkgs.vimPlugins; [
        vim-nix
        rnvimr
        mkdir-nvim
      ];
      enable = true;
      viAlias = true;
      vimAlias = true;
      options = {
	autoindent = true;              
	number = true;                  
        syntax = true;                   
	mouse = "a";                 
	clipboard = "unnamedplus";   
	ttyfast = true;                 
	swapfile = false;              
	backup = false;               
        completeopt = "menu,menuone,noselect";
  	writebackup = false;           
	undodir = ".nixvim/undo";   
	undofile = true;		    
	undoreload = 10000;	    
  	scrolloff = 10;            
        termguicolors = true;
      };
      colorschemes.base16 = {
        enable = true;
        useTruecolor = true;
      };
      plugins = {
#        indent-blankline = {
#          enable = true;
#          useTreesitterScope = true;
#          useTreesitter = true;
#        };
#        nvim-colorizer = {
#          enable = true;
#        };
        trouble = {
          enable = true;
          icons = true;
        };
        nvim-cmp = {
          enable = true;
          auto_enable_sources = true;
          sources = [
            { name = "nvim_lsp"; }
            { name = "path"; }
            { name = "buffer"; }
          ];
          mapping = {
            "<CR>" = "cmp.mapping.confirm({ select = true })";
            "<Tab>" = {
            modes = [ "i" "s" ];
            action = ''
              function(fallback)
                if cmp.visible() then
                  cmp.select_next_item()
                else
                  fallback()
                end
              end
            '';
            };
          };
        };
        treesitter-context = {
          enable = true;
        };
        treesitter-refactor = {
          enable = true;
        };
        treesitter = {
          enable = true;
          folding = true;
          indent = true;
          nixGrammars = true;
        };
        bufferline = {
          enable = true;
          alwaysShowBufferline = true;
        };
      	lualine = {
          enable = true;
          alwaysDivideMiddle = true;
        };
        nix = {
          enable = true;
        };
        lsp = {
          enable = true;
          servers = {
            gdscript.enable = true;
            jsonls.enable = true;
            rnix-lsp.enable = true;
          };
        };
        lsp-lines = {
          enable = true;
        };
      };
    };

@Emaleth Emaleth added the bug Something isn't working label Feb 10, 2023
@pta2002
Copy link
Collaborator

pta2002 commented Feb 20, 2023

This is odd, are you sure nixvim is up to date? (Try running nix flake update)

@Emaleth
Copy link
Author

Emaleth commented Feb 20, 2023

It is, I'm sure of it because i had to pin it to an older commit when recently git checks didn't pass, i later pinned it to new commit once it passed. Right now I'm on mobile, but my nixos config is public so you can have a look at it.

@pta2002
Copy link
Collaborator

pta2002 commented Feb 20, 2023

Made a bare-bones config with those two plugins and haven't been able to reproduce this, so will need to look more in-depth into it

@Emaleth
Copy link
Author

Emaleth commented Feb 20, 2023

on the latest commit it would seem to go trough but i get the following now:
screenshot_2023-02-20-200036

@pta2002
Copy link
Collaborator

pta2002 commented Feb 20, 2023

Are you using nixos-stable or nixos-unstable? The lua-language-server change is from a few weeks ago only, so it has to be on unstable (should probably make it fallback to the old package name on stable, @GaetanLepage this was your PR, think you can fix it? Just add an if statement and check it exists)

@Emaleth
Copy link
Author

Emaleth commented Feb 20, 2023

system on stable, packages mostly stable, some cherrypicked from unstable

@pta2002
Copy link
Collaborator

pta2002 commented Feb 20, 2023

That would explain the issue then! Will work on a fix

@GaetanLepage
Copy link
Member

@Emaleth how exactly did you add the nixvim input to your flake ?
Have you only set the inputs.nixvim.url or have you also added inputs.nixvim.inputs.nixpkgs.follows = nixpkgs ?

@Emaleth
Copy link
Author

Emaleth commented Feb 20, 2023

Just the url
EDIT:
I tried mentioned line and tried following nixpkgs-unstable, neither didn't help. Eventually i switched to nixpkgs-unstable as default, since I planned to do it anyway, and now everything works.

@traxys
Copy link
Member

traxys commented Apr 14, 2023

Related to #333, closing for it I think (feel free to reopen if I'm mistaken)

@traxys traxys closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants