aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/deoplete.vim
diff options
context:
space:
mode:
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>