Fix coc-nvim config

This commit is contained in:
Bad 2022-05-24 20:19:06 +02:00
parent a2834818aa
commit 9521ecd892
2 changed files with 30 additions and 24 deletions

View file

@ -22,6 +22,7 @@ in
delve delve
neovim neovim
polymc polymc
sumneko-lua-language-server
cargo-crev cargo-crev
cargo-fuzz cargo-fuzz
tdesktop tdesktop

View file

@ -127,7 +127,7 @@
coc-pyright coc-pyright
coc-tsserver coc-tsserver
coc-clangd coc-clangd
coc-lua
kotlin-vim kotlin-vim
neoformat neoformat
undotree undotree
@ -152,29 +152,34 @@
''; '';
coc.enable = true; coc.enable = true;
coc.settings = { coc.settings = {
text = { "coc.preferences.formatOnSaveFiletypes" = [
"coc.preferences.formatOnSaveFiletypes" = [ "css"
"css" "markdown"
"markdown" "javascript"
"javascript" "typescript"
"typescript" ];
]; "prettier.useTabs" = true;
"prettier.useTabs" = true; "rust-analyzer.server.path" = "${pkgs.fenix.rust-analyzer}";
"rust-analyzer.server.path" = "${pkgs.fenix.rust-analyzer}"; "rust-analyzer.updates.prompt" = false;
"rust-analyzer.updates.prompt" = false; "rust-analyzer.updates.checkOnStartup" = false;
"rust-analyzer.updates.checkOnStartup" = false; "rust-analyzer.cargo.loadOutDirsFromCheck" = true;
"rust-analyzer.cargo.loadOutDirsFromCheck" = true; "rust-analyzer.procMacro.enable" = true;
"rust-analyzer.procMacro.enable" = true; "clangd.checkUpdates" = false;
"clangd.checkUpdates" = false; "clangd.path" = "clangd";
"clangd.path" = "clangd"; "svelte.plugin.svelte.format.enable" = false;
"svelte.plugin.svelte.format.enable" = false; "languageserver" = {
"languageserver" = { "nix" = {
"nix" = { "command" = "${pkgs.rnix-lsp}/bin/rnix-lsp";
"command" = "${pkgs.rnix-lsp}/bin/rnix-lsp"; "filetypes" = [
"filetypes" = [ "nix"
"nix" ];
]; };
}; "lua" = {
"command" = "${pkgs.sumneko-lua-language-server}/bin/lua-language-server";
"rootPatterns" = [ ".git" ];
"filetypes" = [
"lua"
];
}; };
}; };
}; };