let g:lsp_diagnostics_echo_cursor = 1 function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal signcolumn=yes if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif nmap <buffer> gd <plug>(lsp-definition) nmap <buffer> gr <plug>(lsp-references) nmap <buffer> gi <plug>(lsp-implementation) nmap <buffer> gt <plug>(lsp-type-definition) nmap <buffer> <leader>rn <plug>(lsp-rename) nmap <buffer> [g <Plug>(lsp-previous-diagnostic) nmap <buffer> ]g <Plug>(lsp-next-diagnostic) nmap <buffer> K <plug>(lsp-hover) command! -nargs=0 -buffer ErrorList execute ':LspDocumentDiagnostics --buffers=*' endfunction augroup lsp_install au! autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() augroup END let lsp_log_verbose=1 let lsp_log_file = '/tmp/lsp.log'