-let g:asyncomplete_auto_completeopt = 0
-let g:asyncomplete_auto_popup = 0
-imap <C-b> <Plug>(asyncomplete_force_refresh)
+vim9script
-let g:lsp_highlight_references_enabled = 1
-let g:lsp_diagnostics_echo_cursor = 1
-let g:lsp_diagnostics_echo_delay = -1
+# go get golang.org/x/tools/gopls@latest
+# pip install 'python-language-server[all]'
-function! s:on_lsp_buffer_enabled() abort
- nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
- nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
- nmap <buffer> gd <plug>(lsp-definition)
- nmap <buffer> K <plug>(lsp-hover)
-endfunction
+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",
+}
-augroup lsp_install
- autocmd!
- autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
-augroup END
+map <F6> :LSClientAllDiagnostics<CR>