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 = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
coc.enable = true;
|
coc.enable = true;
|
||||||
coc.settings = ''
|
coc.settings = {
|
||||||
{
|
"rust-analyzer.checkOnSave.command" = "clippy";
|
||||||
"rust-analyzer.checkOnSave.command": "clippy",
|
"rust-analyzer.checkOnSave.extraArgs" = ["-- -W clippy::pedantic"];
|
||||||
"rust-analyzer.checkOnSave.extraArgs": ["-- -W clippy::pedantic"],
|
"inlayHint.enable" = false;
|
||||||
"languageserver": {
|
"zig.zls.path" = "/home/mbk/.config/coc/extensions/coc-zls-data/zls_install/zls";
|
||||||
"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"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
# should probably extract this out but meh
|
# should probably extract this out but meh
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue