1 let g:lsp_highlight_references_enabled = 1
2 let g:lsp_diagnostics_echo_cursor = 1
3 let g:lsp_diagnostics_echo_delay = -1
5 function! s:on_lsp_buffer_enabled() abort
6 setlocal omnifunc=lsp#complete
7 nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
8 nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
9 nmap <buffer> gd <plug>(lsp-definition)
10 nmap <buffer> K <plug>(lsp-hover)
15 autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()