nix-community / nixvim

Configure Neovim with Nix! [maintainer=@GaetanLepage, @traxys, @mattsturgeon, @khaneliman]
https://nix-community.github.io/nixvim
MIT License
1.53k stars 237 forks source link

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

Closed Emaleth closed 1 year ago

Emaleth commented 1 year ago

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;
        };
      };
    };
pta2002 commented 1 year ago

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

Emaleth commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

pta2002 commented 1 year ago

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 commented 1 year ago

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

pta2002 commented 1 year ago

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

GaetanLepage commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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