mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
nvim-lsp: fix package option (null) + test
This commit is contained in:
parent
a3f79b313b
commit
eee375e97e
2 changed files with 10 additions and 1 deletions
|
@ -101,7 +101,11 @@
|
|||
mkIf cfg.enable
|
||||
{
|
||||
extraPackages =
|
||||
(optional (package != null) cfg.package)
|
||||
(
|
||||
optional
|
||||
((package != null) && (cfg.package != null))
|
||||
cfg.package
|
||||
)
|
||||
++ (mapAttrsToList (name: _: cfg."${name}Package") extraPackages);
|
||||
|
||||
plugins.lsp.enabledServers = [
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
print('The clangd language server has been attached !')
|
||||
'';
|
||||
};
|
||||
# Do not install the language server using nixvim
|
||||
gopls = {
|
||||
enable = true;
|
||||
package = null;
|
||||
};
|
||||
nil_ls.enable = true;
|
||||
rust-analyzer.enable = true;
|
||||
ruff-lsp = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue