X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Flsp.vim;fp=vim%2F.vim%2Fplugin%2Flsp.vim;h=1f5586b3c4b9558c3f1cd9d2a674efea5a74a743;hb=9cbfa59ca421fac5422cbf0c2c52f48f8f2adb4c;hp=1928046941157257f7e6d251d1b51478a863ada6;hpb=e21853080f5005ad6c6b548146d339abd197f28e;p=dotfiles.git diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 1928046..1f5586b 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -1,27 +1,29 @@ -" go get golang.org/x/tools/gopls@latest -" pip install 'python-language-server[all]' +vim9script -let g:lsc_enable_autocomplete = v:false -let g:lsc_server_commands = { - \ "c": {"command": "clangd --log=error"}, - \ "cpp": {"command": "clangd --log=error"}, - \ "go": {"command": "gopls", "log_level": -1}, - \ "python": { - \ "command": "pyls", - \ "workspace_config": {"pyls": { - \ "configurationSources": ["flake8"], - \ "plugins": { - \ "mccabe": {"enabled": v:false}, - \ }, - \ }}, - \ "enabled": v:false, - \ }, -\ } -let g:lsc_auto_map = { - \ "GoToDefinition": "gd", - \ "GoToDefinitionSplit": "gd", - \ "ShowHover": v:true, - \ "Completion": "omnifunc", -\ } +# go get golang.org/x/tools/gopls@latest +# pip install 'python-language-server[all]' + +g:lsc_enable_autocomplete = v:false +g:lsc_server_commands = { + c: {command: "clangd --log=error"}, + cpp: {command: "clangd --log=error"}, + go: {command: "gopls", log_level: -1}, + python: { + command: "pyls", + workspace_config: {pyls: { + configurationSources: ["flake8"], + plugins: { + mccabe: {enabled: v:false}, + }, + }}, + enabled: v:false, + }, +} +g:lsc_auto_map = { + GoToDefinition: "gd", + GoToDefinitionSplit: "gd", + ShowHover: v:true, + Completion: "omnifunc", +} map :LSClientAllDiagnostics