19 lines
663 B
VimL
19 lines
663 B
VimL
|
" Use completion-nvim in every buffer
|
||
|
autocmd BufEnter * lua require'completion'.on_attach()
|
||
|
|
||
|
let g:completion_enable_snippet = 'UltiSnips'
|
||
|
let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
|
||
|
|
||
|
" Use <Tab> and <S-Tab> to navigate through popup menu
|
||
|
" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||
|
" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||
|
|
||
|
"map <c-p> to manually trigger completion
|
||
|
"imap <silent> <c-p> <Plug>(completion_trigger)
|
||
|
|
||
|
" Set completeopt to have a better completion experience
|
||
|
set completeopt=menuone,noinsert,noselect
|
||
|
|
||
|
" Avoid showing message extra message when using completion
|
||
|
set shortmess+=c
|