I broke up with neovim....vim is my best friend now
This commit is contained in:
58
dot_vim/plugged/vim-vsnip/dot_themisrc
Normal file
58
dot_vim/plugged/vim-vsnip/dot_themisrc
Normal file
@@ -0,0 +1,58 @@
|
||||
call themis#option('recursive', 1)
|
||||
call themis#option('exclude', '\.vim$')
|
||||
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
|
||||
if get(environ(), 'VIRTUALEDIT', '0') == '1'
|
||||
set virtualedit=all
|
||||
else
|
||||
set virtualedit=
|
||||
endif
|
||||
if get(environ(), 'EXCLUSIVE', '0') == '1'
|
||||
set selection=exclusive
|
||||
else
|
||||
set selection=inclusive
|
||||
endif
|
||||
|
||||
let g:vsnip_test_mode = v:true
|
||||
let g:vsnip_snippet_dir = fnamemodify(expand('<sfile>'), ':h') . '/misc'
|
||||
let g:vsnip_deactivate_on = g:vsnip#DeactivateOn.OutsideOfSnippet
|
||||
let g:vsnip_filetypes = {}
|
||||
let g:vsnip_filetypes.source_spec_enhanced = ['source_spec']
|
||||
|
||||
let &runtimepath .= ',' . g:vsnip_snippet_dir . '/source_spec_vscode'
|
||||
|
||||
inoremap <Plug>(vsnip-C-j) <C-j>
|
||||
inoremap <Plug>(vsnip-Tab) <Tab>
|
||||
inoremap <Plug>(vsnip-S-Tab) <S-Tab>
|
||||
|
||||
imap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<Plug>(vsnip-C-j)'
|
||||
smap <expr> <C-j> vsnip#expandable() ? '<Plug>(vsnip-expand)' : '<Plug>(vsnip-C-j)'
|
||||
|
||||
imap <expr> <Tab> vsnip#available(1) ? '<Plug>(vsnip-expand-or-jump)' : '<Plug>(vsnip-Tab)'
|
||||
smap <expr> <Tab> vsnip#jumpable(1) ? '<Plug>(vsnip-jump-next)' : '<Plug>(vsnip-Tab)'
|
||||
imap <expr> <S-Tab> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<Plug>(vsnip-S-Tab)'
|
||||
smap <expr> <S-Tab> vsnip#jumpable(-1) ? '<Plug>(vsnip-jump-prev)' : '<Plug>(vsnip-S-Tab)'
|
||||
|
||||
imap <Plug>(vsnip-assert) <C-r>=<SID>assert()<CR>
|
||||
nmap <expr><Plug>(vsnip-assert) <SID>assert()
|
||||
smap <expr><Plug>(vsnip-assert) <SID>assert()
|
||||
|
||||
function! s:assert() abort
|
||||
let l:keys = sort(keys(g:vsnip_assert))
|
||||
if len(l:keys) > 0
|
||||
let l:session = vsnip#get_session()
|
||||
if !empty(l:session)
|
||||
call l:session.on_text_changed()
|
||||
endif
|
||||
|
||||
let l:key = l:keys[0]
|
||||
let l:Fn = g:vsnip_assert[l:key]
|
||||
unlet! g:vsnip_assert[l:key]
|
||||
call l:Fn()
|
||||
endif
|
||||
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user