diff options
author | Guangxiong Lin <[email protected]> | 2022-06-06 20:20:58 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-06-06 20:20:58 +0800 |
commit | c90d004fbdd41f5b5bdae81b201b33d99d9aaa0d (patch) | |
tree | eede18ddcb45bf5ae78b79fe948adab27241a8e7 /.vim/after/plugin/deoplete.vim | |
parent | 0e67eba262e20b589deb9cd519304582bbf1dd07 (diff) | |
download | dotfiles-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.vim | 5 |
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> |