diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-10-03 21:18:35 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-10-03 21:18:35 -0400 |
| commit | ca4c4117c3c799951714ef850771a1ae10c35598 (patch) | |
| tree | e0289afef885e9f1855bae7cd36c8f2741300547 | |
| parent | f3df5761bc517300476efd2b96035018dfd37e7e (diff) | |
vim: check for snippets relative to vimtex root
| -rw-r--r-- | .vimrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -53,6 +53,7 @@ set statusline=%f\ %y%h%w%m%r%=%l:%c\ %P &t_EI = "\<Esc>[2 q" nnoremap \ :noh<cr> +nnoremap Y y$ nnoremap <leader>n :bnext!<cr> nnoremap <leader>p :bprev!<cr> @@ -67,8 +68,6 @@ set conceallevel=2 g:tex_conceal = "abdmg" hi Conceal ctermbg=none -autocmd FileType tex b:vcm_tab_complete = "omni" - g:UltiSnipsExpandTrigger = "<tab>" g:UltiSnipsJumpForwardTrigger = "<tab>" g:UltiSnipsJumpBackwardTrigger = "<s-tab>" @@ -190,5 +189,7 @@ nnoremap <leader>fe :FigEdit<CR> nnoremap <leader>ev :vsplit $MYVIMRC<CR> nnoremap <leader>sv :source $MYVIMRC<CR> +autocmd FileType tex g:UltiSnipsSnippetDirectories += [b:vimtex.root .. "/UltiSnips"] + runtime! macros/matchit.vim runtime! ftplugin/man.vim |
