Skip to content

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

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

Open
BirdeeHub opened this issue Apr 20, 2025 · 0 comments
Open

Comments

@BirdeeHub
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant