--- /dev/null
+au User lsp_setup call lsp#register_server({
+\ "name": "clangd",
+\ "cmd": ["clangd60"],
+\ "whitelist": ["c", "cpp", "objc", "objcpp"],
+\})
--- /dev/null
+au User lsp_setup call lsp#register_server({
+\ "name": "gopls",
+\ "cmd": ["gopls"],
+\ "whitelist": ["go"],
+\})
--- /dev/null
+if executable("pyls")
+ " pip install python-language-server
+ au User lsp_setup call lsp#register_server({
+ \ "name": "pyls",
+ \ "cmd": {server_info->["pyls"]},
+ \ "whitelist": ["python"],
+ \})
+endif
-let g:lsp_settings_enable_suggestions = 0
-let g:lsp_settings = {
-\ 'clangd': {'cmd': ['clangd60']},
-\}
-
let g:asyncomplete_auto_completeopt = 0
let g:asyncomplete_auto_popup = 0
-imap <C-@> <Plug>(asyncomplete_force_refresh)
+imap <C-b> <Plug>(asyncomplete_force_refresh)
let g:lsp_highlight_references_enabled = 1
let g:lsp_diagnostics_echo_cursor = 1