Fix language client

This commit is contained in:
sfigato 2023-06-15 18:05:08 +02:00
parent 67b87ba774
commit b220a50fb7
Signed by: blallo
GPG Key ID: C530464EEDCF489A
2 changed files with 10 additions and 9 deletions

View File

@ -1,9 +1,7 @@
let g:fzf_action = {
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit',
\ }
let opts = fzf#vim#with_preview().options + [
\ '--expect='.join(keys(fzf_action), ','),
\ ]
let g:LanguageClient_fzfOptions = opts
let g:lcn_fzf_options = "--delimiter ':' --preview-window '+{2}-20' --expect 'ctrl-t,ctrl-x,ctrl-v'"
function! LcnFzfSelectionUI(source, sink) abort
return fzf#run(fzf#wrap(fzf#vim#with_preview({'source': a:source, 'options': g:lcn_fzf_options})))
endfunction
let g:LanguageClient_selectionUI = function('LcnFzfSelectionUI')

View File

@ -51,3 +51,6 @@ function LC_maps()
endfunction
autocmd FileType * call LC_maps()
let g:LanguageClient_loggingLevel = 'DEBUG'
let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')