Auto-close deoplete preview

This commit is contained in:
Michael Mandl 2020-09-01 14:17:36 +02:00
parent b0c43f4da7
commit ee90bec9db
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -111,16 +111,25 @@ nnoremap <C-F> :Rg \b<C-R><C-W>\b<CR>
highlight illuminatedWord ctermbg=23
" split-open
let g:splitopen_set_fzf_keys = 1
nnoremap <C-S> :Split<CR>
let g:fzf_action = {
\ 'ctrl-s': 'SplitOpen',
\ 'ctrl-t': 'tab drop',
\ 'ctrl-x': 'split',
\ 'ctrl-y': 'vsplit',
\ }
" deoplete
let g:deoplete#enable_at_startup = 1
augroup deoplete
autocmd!
autocmd CompleteDone * silent! pclose!
augroup END
silent! call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
silent! clas deoplete#custom#option({
\ 'smart_case': v:true,
\ })
augroup close_preview
autocmd InsertLeave * silent! pclose!
augroup end
set completefunc=LanguageClient#complete
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"