Skip to content

Instantly share code, notes, and snippets.

@rku4er
Created September 11, 2020 03:08
Show Gist options
  • Save rku4er/260ccdaa1fa8cbbbc2df9a3d0dc17415 to your computer and use it in GitHub Desktop.
Save rku4er/260ccdaa1fa8cbbbc2df9a3d0dc17415 to your computer and use it in GitHub Desktop.
Deoplete + Neosnippets
" deoplete {
if count(g:spf13_bundle_groups, 'deoplete')
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_ignore_case = 1
let g:neosnippet#enable_completed_snippet = 1
" ----------------------------------------------------------------------------
" supertab & neosnippet
" ----------------------------------------------------------------------------
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
endif
" }
" Snippets {
if count(g:spf13_bundle_groups, 'deoplete')
" Use honza's snippets.
let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets'
" Enable neosnippet snipmate compatibility mode
let g:neosnippet#enable_snipmate_compatibility = 1
" For snippet_complete marker.
if !exists("g:spf13_no_conceal")
if has('conceal')
set conceallevel=2 concealcursor=i
endif
endif
" Enable neosnippets when using go
let g:go_snippet_engine = "neosnippet"
" Disable the neosnippet preview candidate window
" When enabled, there can be too much visual noise
" especially when splits are used.
set completeopt-=preview
endif
" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment