added zig lsp.
This commit is contained in:
parent
a08109dc84
commit
3ac448bfa9
4 changed files with 29 additions and 4 deletions
|
@ -31,7 +31,6 @@
|
|||
ts_ls.enable = true;
|
||||
uiua.enable = true;
|
||||
yamlls.enable = true;
|
||||
zls.enable = true;
|
||||
};
|
||||
};
|
||||
plugins.cmp.settings.sources = [
|
||||
|
@ -188,5 +187,6 @@
|
|||
imports = [
|
||||
./rustaceanvim.nix
|
||||
./clangd.nix
|
||||
./zig.nix
|
||||
];
|
||||
}
|
||||
|
|
17
modules/home-manager/nvim/lsp/zig.nix
Normal file
17
modules/home-manager/nvim/lsp/zig.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable) {
|
||||
programs.nixvim = {
|
||||
plugins.lsp.servers.zls = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enable_build_on_save = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue