-
-
Notifications
You must be signed in to change notification settings - Fork 337
[BUG] nvim-lspconfig
default configuration missing for eslint
#3224
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
Comments
nvim-lspconfig
server config defaults are missing for some LSPsnvim-lspconfig
default configuration missing for some LSPs
nvim-lspconfig
default configuration missing for some LSPsnvim-lspconfig
default configuration missing for some LSPs
I don't see any obvious issues in your I've cloned your config locally, it seems the Details
$ nix repl
Nix 2.28.2
Type :? for help.
nix-repl> :lf .
Added 21 variables.
nix-repl> inputs.nixvim.inputs.nixpkgs.legacyPackages.x86_64-linux.vimPlugins.nvim-lspconfig
«derivation /nix/store/xhgb9if6frgl8gp9ykk147yxd2bwiz2p-vimplugin-nvim-lspconfig-2025-04-19.drv»
nix-repl> "${inputs.nixvim.inputs.nixpkgs.legacyPackages.x86_64-linux.vimPlugins.nvim-lspconfig}"
"/nix/store/hmhhy2wah8l487cbx3d1hhpv2fqg466z-vimplugin-nvim-lspconfig-2025-04-19"
$ ls /nix/store/hmhhy2wah8l487cbx3d1hhpv2fqg466z-vimplugin-nvim-lspconfig-2025-04-19/lsp/eslint.lua
ls: cannot access '/nix/store/hmhhy2wah8l487cbx3d1hhpv2fqg466z-vimplugin-nvim-lspconfig-2025-04-19/lsp/eslint.lua': No such file or directory Looking upstream at However, nixpkgs is still using So you're running into neovim/nvim-lspconfig#3705 and either need to use a workaround, update |
As a temporary solution, you can bump nvim-lspconfig yoursef using this overlay: (pkgs: prevPkgs: {
vimPlugins = prevPkgs.vimPlugins.extend (plugins: prevPlugins: {
# Update nvim-lspconfig to fix https://github.com/nix-community/nixvim/issues/3224
# TODO: remove once nixpkgs updates vimPlugins
nvim-lspconfig = prevPlugins.nvim-lspconfig.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "nvim-lspconfig";
rev = "c48fac0936f24a5a2dbea9c8379ec9414a45eb8b";
hash = "sha256-L/yz0egBCIJ9kIDoZzX/+9GHx2au2VtlOPkm+zZ+T7M=";
};
};
});
}) PR submitted to your config: IMax153/nixvim#1 |
nvim-lspconfig
default configuration missing for some LSPsnvim-lspconfig
default configuration missing for eslint
(Reopening until a fix makes it to nixvim's pinned nixpkgs) |
@MattSturgeon - thank you so much for helping me to debug the issue, as well as to understand better how Nixvim / Neovim source configs for the LSPs! Also makes perfect sense why some LSPs were working and some were not! I appreciate your patience 🙏 |
FYI: @IMax153 you can remove the overlay next time you bump your nixvim input. We have reverted our migration from nvim-lspconfig's old API to the new API for now due to issues like this one. |
Description
For certain LSPs, the defaults from
nvim-lspconfig
seem to be missing, resulting in problems attaching the LSP to applicable buffers.For example, setting
plugins.lsp.servers.eslint.enable = true
, I get an error in theLspLog
related to a missingcmd
:More detail on the issue can be found in the comments of #3217.
Additional Information
Output of
:checkhealth vim.lsp
lsp-health.txt
Output of
nixvim-print-init
init.lua.txt
Note - GitHub seemingly would not allow upload of a Lua file, so I had to append
.txt
to the filename.Output of
nix-repl
:p packages.aarch64-darwin.default.config.extraPlugins
:p packages.aarch64-darwin.default.config.performance.combinePlugins
The text was updated successfully, but these errors were encountered: