added zig lsp.
This commit is contained in:
parent
a08109dc84
commit
079ef3b1ce
5 changed files with 29 additions and 10 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
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,13 +4,14 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
config =
|
||||
lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable)
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
10
modules/home-manager/nvim/lsp/zig.nix
Normal file
10
modules/home-manager/nvim/lsp/zig.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config =
|
||||
lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable) {
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue