Add coc config
This commit is contained in:
parent
ae16e2ea9b
commit
332881e306
2 changed files with 42 additions and 1 deletions
40
users/profiles/neovim/coc/default.nix
Normal file
40
users/profiles/neovim/coc/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
target = "${config.xdg.configHome}/nvim/coc-settings.json";
|
||||
text = ''
|
||||
{
|
||||
"coc.preferences.formatOnSaveFiletypes": [
|
||||
"css",
|
||||
"markdown",
|
||||
"javascript",
|
||||
"typescript"
|
||||
],
|
||||
"prettier.useTabs": true,
|
||||
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
|
||||
"rust-analyzer.procMacro.enable": true,
|
||||
"clangd.checkUpdates": true,
|
||||
"svelte.plugin.svelte.format.enable": false,
|
||||
"python.analysis.extraPaths": [
|
||||
"/usr/share/gdb/python",
|
||||
"/usr/share/pwndbg/"
|
||||
],
|
||||
"languageserver": {
|
||||
"zls" : {
|
||||
"command": "zls",
|
||||
"filetypes": ["zig"]
|
||||
},
|
||||
"dlang" : {
|
||||
"command": "serve-d",
|
||||
"rootPatterns": ["dub.json", "dub.sdl"],
|
||||
"filetypes": ["d"]
|
||||
},
|
||||
"nix": {
|
||||
"command": "${pkgs.rnix-lsp}/bin/rnix-lsp",
|
||||
"filetypes": [
|
||||
"nix"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }@inputs:
|
||||
{
|
||||
programs.neovim = {
|
||||
|
||||
|
@ -57,4 +57,5 @@
|
|||
set shortmess+=c
|
||||
'';
|
||||
};
|
||||
home.file."coc-settings" = (import ./coc { inherit pkgs config; });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue