1 if exists("g:loaded_mein_lsp") | finish | endif
2 let g:loaded_mein_lsp = 1
4 let g:lsp_highlight_references_enabled = 1
5 let g:lsp_diagnostics_echo_cursor = 1
6 let g:lsp_diagnostics_echo_delay = -1
8 function! s:on_lsp_buffer_enabled() abort
9 setlocal omnifunc=lsp#complete
10 nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
11 nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
12 nmap <buffer> gd <plug>(lsp-definition)
13 nmap <buffer> K <plug>(lsp-hover)
18 autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()