621548b542491a19c5fe41be7b5dcf0879840375
[dotfiles.git] / vim / .vim / plugin / lsp.vim
1 let g:asyncomplete_auto_completeopt = 0
2 let g:asyncomplete_auto_popup = 0
3 imap <C-b> <Plug>(asyncomplete_force_refresh)
4
5 let g:lsp_highlight_references_enabled = 1
6 let g:lsp_diagnostics_echo_cursor = 1
7 let g:lsp_diagnostics_echo_delay = -1
8
9 function! s:on_lsp_buffer_enabled() abort
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)
14 endfunction
15
16 augroup lsp_install
17     autocmd!
18     autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
19 augroup END