mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 23:06:38 -05:00
Selecting autocompletion with the return key won't also linebreak
This commit is contained in:
parent
71a33571c4
commit
e07931125e
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@
|
||||||
"neocomplcache close popup and save indent
|
"neocomplcache close popup and save indent
|
||||||
inoremap <silent> <CR> <C-r>=<SID>neocompl_cr()<CR>
|
inoremap <silent> <CR> <C-r>=<SID>neocompl_cr()<CR>
|
||||||
function! s:neocompl_cr()
|
function! s:neocompl_cr()
|
||||||
return neocomplcache#smart_close_popup() . "\<CR>"
|
return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
|
||||||
endfunction
|
endfunction
|
||||||
"neocomplcache tab completion
|
"neocomplcache tab completion
|
||||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
|
|
Loading…
Reference in a new issue