41 lines
1,022 B
Nix
41 lines
1,022 B
Nix
{ 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": alse,
|
|
"clangd.path": "${pkgs.clang-tools}/bin/clangd",
|
|
"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"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
'';
|
|
}
|