Completely remove asyncomplete
[dotfiles.git] / vim / .vim / plugin / lsp.vim
1 let g:lsp_highlight_references_enabled = 1
2 let g:lsp_diagnostics_echo_cursor = 1
3 let g:lsp_diagnostics_echo_delay = -1
4
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)
11 endfunction
12
13 augroup lsp_install
14     autocmd!
15     autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
16 augroup END