From 761fe23237b89d353bce742bda254437d098a914 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Tue, 19 Dec 2017 16:10:27 +0100 Subject: [PATCH] Add Vimtex settings --- vim/neosnippets/tex.snip | 13 +++++++++++++ vimrc.symlink | 17 ++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 vim/neosnippets/tex.snip diff --git a/vim/neosnippets/tex.snip b/vim/neosnippets/tex.snip new file mode 100644 index 0000000..176aab7 --- /dev/null +++ b/vim/neosnippets/tex.snip @@ -0,0 +1,13 @@ +snippet environment +abbr env +alias env +options head + \begin{${1}} + ${2} + \end{$1} + +snippet align +options head + \begin{align${1:#:options}} + ${0} + \end{align$1} diff --git a/vimrc.symlink b/vimrc.symlink index 951c69c..cdfde71 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -33,7 +33,10 @@ Plug 'godlygeek/tabular' " Align text on symbols Plug 'szw/vim-tags' , { 'for' : 'php' } " tags support Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " fuzzy file finder Plug 'junegunn/fzf.vim' " vim integration for fzf -Plug 'airblade/vim-gitgutter' " git status in gutter column +if has("nvim") + " Problems with Syntastic in vim + Plug 'airblade/vim-gitgutter' " git status in gutter column +endif " html / templates Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " emmet support for vim - easily create markdup wth CSS-like syntax @@ -174,6 +177,7 @@ let NERDTreeShowHidden=1 let g:airline_powerline_fonts = 1 +" Syntastic let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 @@ -190,6 +194,17 @@ autocmd FileType java setlocal omnifunc=javacomplete#Complete " Python-mode config let g:pymode_lint_on_write = 0 + +" Vimtex +if !exists('g:neocomplete#sources#omni#input_patterns') + let g:neocomplete#sources#omni#input_patterns = {} +endif +let g:neocomplete#sources#omni#input_patterns.tex = + \ '\v\\%(' + \ . '\a*%(ref|cite)\a*%(\s*\[[^]]*\])?\s*\{[^{}]*' + \ . '|includegraphics%(\s*\[[^]]*\])?\s*\{[^{}]*' + \ . '|%(include|input)\s*\{[^{}]*' + \ . ')' "}}} " N E O C O M P L E T E {{{