nvim and lsp stuff

This commit is contained in:
Adithya 2023-05-18 16:07:06 +05:30
parent f8c60bb932
commit cf6a196db2
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -146,12 +146,35 @@
disableNetrw = true;
filesystemWatchers.enable = true;
};
null-ls = {
enable = true;
sources = {
code_actions = {
shellcheck.enable = true;
};
diagnostics = {
shellcheck.enable = true;
};
formatting = {
alejandra.enable = true;
};
};
};
lsp = {
enable = true;
servers = {
gopls.enable = true;
rnix-lsp.enable = true;
rust-analyzer.enable = true;
gopls = {
enable = true;
filetypes = [ "go" ];
};
nil_ls = {
enable = true;
filetypes = [ "nix" ];
};
rust-analyzer = {
enable = true;
filetypes = [ "rs" ];
};
};
};
};