Fix language client
This commit is contained in:
parent
67b87ba774
commit
b220a50fb7
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user