nvim/after/plugin/general.vim

20 lines
597 B
VimL
Raw Permalink Normal View History

let g:deoplete#enable_at_startup = 1
2018-07-25 12:15:00 +00:00
if !exists('g:deoplete#omni#input_patterns')
let g:deoplete#omni#input_patterns = {}
endif
" <C-h>, <BS>: close popup and delete backword char.
2019-12-13 09:47:11 +00:00
"inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>"
"inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>"
2018-07-25 12:15:00 +00:00
"inoremap <silent><expr> <TAB>
" \ pumvisible() ? "\<C-n>" :
" \ <SID>check_back_space() ? "\<TAB>" :
" \ '\<C-x><C-o>'
2018-07-25 12:15:00 +00:00
function! s:check_back_space()
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
"inoremap <silent> <c-space> <C-x><C-o>