mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 13:50:51 +01:00
Needed rust-analyser
This commit is contained in:
parent
1768a6c836
commit
f4cb839517
1 changed files with 10 additions and 1 deletions
|
@ -24,6 +24,9 @@ with lib;
|
|||
enable = true;
|
||||
settings = {
|
||||
coc.preferences.formatOnSaveFiletypes = [ "nix" "rust" "sql" "python" ];
|
||||
rust-analyzer.enable = true;
|
||||
rust-analyzer.cargo.allFeatures = true;
|
||||
rust-analyzer.checkOnSave.allTargets = true;
|
||||
languageserver =
|
||||
{
|
||||
python = {
|
||||
|
@ -31,6 +34,11 @@ with lib;
|
|||
filetypes = [ "py" "python" ];
|
||||
};
|
||||
|
||||
haskell = {
|
||||
command = "haskell-language-server";
|
||||
filetypes = [ "hs" ];
|
||||
};
|
||||
|
||||
nix = {
|
||||
command = "rnix-lsp";
|
||||
filetypes = [
|
||||
|
@ -78,10 +86,11 @@ with lib;
|
|||
semshi
|
||||
coc-prettier
|
||||
coc-pyright
|
||||
coc-rust-analyzer
|
||||
rust-vim
|
||||
];
|
||||
|
||||
extraPackages = with pkgs; [ rust-analyzer rnix-lsp pyright ];
|
||||
extraPackages = with pkgs; [ rust-analyzer rnix-lsp pyright haskell-language-server ];
|
||||
|
||||
extraConfig = ''
|
||||
luafile ${./settings.lua}
|
||||
|
|
Loading…
Add table
Reference in a new issue