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