devos/users/profiles/neovim/coc/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

2021-04-15 12:23:55 +02:00
{ pkgs, config, ... }:
{
target = "${config.xdg.configHome}/nvim/coc-settings.json";
text = ''
{
"coc.preferences.formatOnSaveFiletypes": [
"css",
"markdown",
"javascript",
"typescript"
],
"prettier.useTabs": true,
2021-06-01 22:04:48 +02:00
"rust-analyzer.server.path": "rust-analyzer",
2021-04-15 12:23:55 +02:00
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
"rust-analyzer.procMacro.enable": true,
2021-04-28 22:30:23 +02:00
"clangd.checkUpdates": false,
2021-06-03 11:57:45 +02:00
"clangd.path": "clangd",
2021-04-15 12:23:55 +02:00
"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"
]
}
}
}
'';
}