mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
feat: added ccls to neovim
This commit is contained in:
parent
855349d827
commit
fe8a984931
1 changed files with 30 additions and 4 deletions
|
@ -23,7 +23,7 @@ with lib;
|
||||||
coc = {
|
coc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
coc.preferences.formatOnSaveFiletypes = [ "nix" "rust" "sql" "python" ];
|
coc.preferences.formatOnSaveFiletypes = [ "nix" "rust" "sql" "python" "haskell" ];
|
||||||
rust-analyzer.enable = true;
|
rust-analyzer.enable = true;
|
||||||
rust-analyzer.cargo.allFeatures = true;
|
rust-analyzer.cargo.allFeatures = true;
|
||||||
rust-analyzer.checkOnSave.allTargets = true;
|
rust-analyzer.checkOnSave.allTargets = true;
|
||||||
|
@ -35,8 +35,23 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
haskell = {
|
haskell = {
|
||||||
command = "haskell-language-server";
|
command = "haskell-language-server-wrapper";
|
||||||
filetypes = [ "hs" ];
|
args = [ "--lsp" ];
|
||||||
|
rootPatterns = [
|
||||||
|
"*.cabal"
|
||||||
|
"cabal.project"
|
||||||
|
"hie.yaml"
|
||||||
|
".stack.yaml"
|
||||||
|
];
|
||||||
|
filetypes = [ "haskell" "lhaskell" "hs" "lhs" ];
|
||||||
|
settings = {
|
||||||
|
haskell = {
|
||||||
|
checkParents = "CheckOnSave";
|
||||||
|
checkProject = true;
|
||||||
|
maxCompletions = 40;
|
||||||
|
formattingProvider = "ormolu";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
@ -49,6 +64,17 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ccls = {
|
||||||
|
command = "ccls";
|
||||||
|
filetypes = [ "c" "cpp" "objc" "objcpp" ];
|
||||||
|
rootPatterns = [ ".ccls" "compile_commands.json" ".vim/" ".git/" ".hg/" ];
|
||||||
|
initializationOptions = {
|
||||||
|
cache = {
|
||||||
|
directory = "/tmp/ccls";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -91,7 +117,7 @@ with lib;
|
||||||
rust-vim
|
rust-vim
|
||||||
];
|
];
|
||||||
|
|
||||||
extraPackages = with pkgs; [ rust-analyzer pkgs.unstable.nil pyright haskell-language-server nixpkgs-fmt ];
|
extraPackages = with pkgs; [ rust-analyzer pkgs.unstable.nil pyright nixpkgs-fmt ormolu ccls ];
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
luafile ${./settings.lua}
|
luafile ${./settings.lua}
|
||||||
|
|
Loading…
Add table
Reference in a new issue