]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/plugin/lsp.vim
7b6d4eadefc902b87958547b634c0d81bb3cfa5e
[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     \     "enabled": v:false,
18     \ },
19 \ }
20 let g:lsc_auto_map = {
21     \ "GoToDefinition": "gd",
22     \ "GoToDefinitionSplit": "<C-W>gd",
23     \ "ShowHover": v:true,
24     \ "Completion": "omnifunc",
25 \ }
26
27 map <F6> :LSClientAllDiagnostics<CR>