]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/plugin/lsp.vim
Move to vim9script
[dotfiles.git] / vim / .vim / plugin / lsp.vim
1 vim9script
2
3 # go get golang.org/x/tools/gopls@latest
4 # pip install 'python-language-server[all]'
5
6 g:lsc_enable_autocomplete = v:false
7 g:lsc_server_commands = {
8     c: {command: "clangd --log=error"},
9     cpp: {command: "clangd --log=error"},
10     go: {command: "gopls", log_level: -1},
11     python: {
12         command: "pyls",
13         workspace_config: {pyls: {
14             configurationSources: ["flake8"],
15             plugins: {
16                 mccabe: {enabled: v:false},
17             },
18         }},
19         enabled: v:false,
20     },
21 }
22 g:lsc_auto_map = {
23     GoToDefinition: "gd",
24     GoToDefinitionSplit: "<C-W>gd",
25     ShowHover: v:true,
26     Completion: "omnifunc",
27 }
28
29 map <F6> :LSClientAllDiagnostics<CR>