clean coc settings
This commit is contained in:
parent
b30a65da0a
commit
c1bfc7e69e
1 changed files with 6 additions and 20 deletions
26
home.nix
26
home.nix
|
|
@ -215,26 +215,12 @@ in
|
|||
programs.neovim = {
|
||||
enable = true;
|
||||
coc.enable = true;
|
||||
coc.settings = ''
|
||||
{
|
||||
"rust-analyzer.checkOnSave.command": "clippy",
|
||||
"rust-analyzer.checkOnSave.extraArgs": ["-- -W clippy::pedantic"],
|
||||
"languageserver": {
|
||||
"ccls": {
|
||||
"command": "ccls",
|
||||
"filetypes": ["c", "cpp", "objc", "objcpp"],
|
||||
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
|
||||
"initializationOptions": {
|
||||
"cache": {
|
||||
"directory": "/tmp/ccls"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"inlayHint.enable": true,
|
||||
"zig.zls.path": "/home/mbk/.config/coc/extensions/coc-zls-data/zls_install/zls"
|
||||
}
|
||||
'';
|
||||
coc.settings = {
|
||||
"rust-analyzer.checkOnSave.command" = "clippy";
|
||||
"rust-analyzer.checkOnSave.extraArgs" = ["-- -W clippy::pedantic"];
|
||||
"inlayHint.enable" = false;
|
||||
"zig.zls.path" = "/home/mbk/.config/coc/extensions/coc-zls-data/zls_install/zls";
|
||||
};
|
||||
defaultEditor = true;
|
||||
# should probably extract this out but meh
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
|
|
|
|||
Loading…
Reference in a new issue