nixCats-nvim icon indicating copy to clipboard operation
nixCats-nvim copied to clipboard

template LSP setup changes with 0.11 and newest nvim-lspconfig update

Open BirdeeHub opened this issue 8 months ago • 0 comments

If you find your LSPs do not start or an error is thrown when using the home manager template's example configuration, either your nixpkgs channel provided to your neovim is too old and doesnt have nvim-lspconfig 2.0.0 or nvim 0.11, or you pulled the template before it has been updated to use the new lsp configuration scheme.

You can pass a new nixpkgs to use via the nixpkgs_version module option

Neovim recently updated the way it does its lsps.


If you cannot update your nixpkgs input for other reasons, you should ensure you are using nvim 0.11+ still, (latest stable nixpkgs release, or set neovim-unwrapped setting in packageDefinitions) and then pull the newest version of nvim-lspconfig

  inputs = {
    # ...
    "plugins-nvim-lspconfig" = {
      url = "github:neovim/nvim-lspconfig";
      flake = false;
    };
    # ...
  };

If your dependencyOverlays list or addOverlays option contains a call to the standard plugin overlay, you may then replace pkgs.vimPlugins.nvim-lspconfig with pkgs.neovimPlugins.nvim-lspconfig

If it doesn't, you can replace it with (mkPlugin "nvim-lspconfig" inputs.plugins-nvim-lspconfig) instead. (Where mkPlugin is provided by the arguments to your categoryDefinitions)

BirdeeHub avatar Apr 20 '25 00:04 BirdeeHub