Skip to content

Instantly share code, notes, and snippets.

@hanspinckaers
Last active August 21, 2018 19:09
Show Gist options
  • Save hanspinckaers/f2a0382fa822aef83976b3e09eff1c46 to your computer and use it in GitHub Desktop.
Save hanspinckaers/f2a0382fa822aef83976b3e09eff1c46 to your computer and use it in GitHub Desktop.
NCM2 .vimrc settings
" the relevant modules (add to plug-section if you already have one)
call plug#begin('~/.vim/plugged')
Plug 'roxma/nvim-yarp'
Plug 'ncm2/ncm2'
" Fast python completion (use ncm2 if you want type info or snippet support)
Plug 'HansPinckaers/ncm2-jedi'
" Words in buffer completion
Plug 'ncm2/ncm2-bufword'
" Filepath completion
Plug 'ncm2/ncm2-path'
call plug#end()
" ncm2 settings
autocmd BufEnter * call ncm2#enable_for_buffer()
set completeopt=menuone,noselect,noinsert
set shortmess+=c
inoremap <c-c> <ESC>
" make it fast
let ncm2#popup_delay = 5
let ncm2#complete_length = [[1, 1]]
" Use new fuzzy based matches
let g:ncm2#matcher = 'substrfuzzy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment