nvim/after/plugin/general.vim

21 lines
625 B
VimL
Raw 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>" :
2019-12-13 09:47:11 +00:00
\ coc#refresh()
"\ '\<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
2019-12-13 09:47:11 +00:00
inoremap <silent><expr> <c-space> coc#refresh()