-" 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": "Error"},
- \ "python": {
- \ "command": "pyls",
- \ "workspace_config": {"pyls": {
- \ "configurationSources": ["flake8"],
- \ "plugins": {
- \ "mccabe": {"enabled": v:false},
- \ },
- \ }},
- \ "enabled": v:false,
- \ },
-\ }
-let g:lsc_auto_map = {
- \ "GoToDefinition": "gd",
- \ "GoToDefinitionSplit": "<C-W>gd",
- \ "ShowHover": v:true,
- \ "Completion": "omnifunc",
-\ }
+# go get golang.org/x/tools/gopls@latest
+# pip install 'python-language-server[all]'
+
+g:lsc_enable_autocomplete = 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: false},
+ },
+ }},
+ enabled: false,
+ },
+}
+g:lsc_auto_map = {
+ GoToDefinition: "gd",
+ GoToDefinitionSplit: "<C-W>gd",
+ ShowHover: true,
+ Completion: "omnifunc",
+}
map <F6> :LSClientAllDiagnostics<CR>