Auto-close deoplete preview

main
mandlm 2020-09-01 14:17:36 +02:00
parent b0c43f4da7
commit ee90bec9db
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 14 additions and 5 deletions

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>"