nvim and lsp stuff
This commit is contained in:
parent
f8c60bb932
commit
cf6a196db2
1 changed files with 26 additions and 3 deletions
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue