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 (asyncomplete_force_refresh) autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif let g:lsp_highlight_references_enabled = 1 let g:lsp_diagnostics_echo_cursor = 1 let g:lsp_diagnostics_echo_delay = -1 function! s:on_lsp_buffer_enabled() abort nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap gd (lsp-definition) nmap K (lsp-hover) endfunction augroup lsp_install autocmd! autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() augroup END