feat(nvim): enable zig support
All checks were successful
/ check (push) Successful in 45s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 1s

But don't bundle ZLS, it is too big.
This commit is contained in:
Jalil David Salamé Messina 2024-11-07 18:25:12 +01:00
parent 50a9deb2c9
commit 146847f5c5
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -10,7 +10,7 @@ let
cfg = config.jhome.nvim; cfg = config.jhome.nvim;
enabledLSPs = [ enabledLSPs = [
"bashls" "bashls"
# "clangd" # Adds ~2GiB "clangd"
# "html" # Not writing html # "html" # Not writing html
"jsonls" "jsonls"
"marksman" "marksman"
@ -21,6 +21,7 @@ let
# "texlab" # Not using it # "texlab" # Not using it
"typos_lsp" "typos_lsp"
# "typst_lsp" # Not using it # "typst_lsp" # Not using it
"zls"
]; ];
in in
{ {
@ -43,7 +44,13 @@ in
plugins = { plugins = {
lsp = { lsp = {
enable = true; enable = true;
servers.bashls.package = lib.mkDefault pkgs.bash-language-server; servers = {
bashls.package = lib.mkDefault pkgs.bash-language-server;
# Adds ~2 GiB, install in a devShell instead
clangd.package = lib.mkDefault null;
# zls & other zig tools are big, install in a devShell instead
zls.package = lib.mkDefault null;
};
}; };
lspkind = { lspkind = {
enable = true; enable = true;