aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/deoplete.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-06 20:20:58 +0800
committerGuangxiong Lin <[email protected]>2022-06-06 20:20:58 +0800
commitc90d004fbdd41f5b5bdae81b201b33d99d9aaa0d (patch)
treeeede18ddcb45bf5ae78b79fe948adab27241a8e7 /.vim/after/plugin/deoplete.vim
parent0e67eba262e20b589deb9cd519304582bbf1dd07 (diff)
downloaddotfiles-c90d004fbdd41f5b5bdae81b201b33d99d9aaa0d.tar.gz
dotfiles-c90d004fbdd41f5b5bdae81b201b33d99d9aaa0d.tar.bz2
dotfiles-c90d004fbdd41f5b5bdae81b201b33d99d9aaa0d.zip
Update vim config
Diffstat (limited to '.vim/after/plugin/deoplete.vim')
-rw-r--r--.vim/after/plugin/deoplete.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/.vim/after/plugin/deoplete.vim b/.vim/after/plugin/deoplete.vim
index d478aba..a422890 100644
--- a/.vim/after/plugin/deoplete.vim
+++ b/.vim/after/plugin/deoplete.vim
@@ -20,3 +20,8 @@ call deoplete#custom#option({
call deoplete#custom#source('ultisnips', 'rank', 1000)
call deoplete#custom#source('lsp', 'rank', 900)
+
+function! s:my_cr_function() abort
+ return deoplete#close_popup() . "\<CR>"
+endfunction
+inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>