diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-05-09 15:47:03 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-05-09 15:47:03 +0100 |
commit | 5dbeb72843b9b55fced59670b98b81f74519ff4d (patch) | |
tree | c8744c0b752c5acaaebdc98f5661321b21304c87 | |
parent | b7a1cc6424ee412282e5c6c631ca30097a0a3cd3 (diff) |
Add neocomplete completion rules for latex
-rw-r--r-- | vim/.vimrc | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -42,6 +42,7 @@ Plug 'tpope/vim-dispatch' Plug 'tpope/vim-eunuch' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-obsession' +Plug 'tpope/vim-projectionist' Plug 'tpope/vim-repeat' Plug 'tpope/vim-rsi' Plug 'tpope/vim-sensible' @@ -136,7 +137,21 @@ if !exists('g:deoplete#omni#input_patterns') let g:deoplete#omni#input_patterns = {} endif let g:deoplete#omni#input_patterns.ledger = ':\w*' -let g:deoplete#omni#input_patterns.tex = ['cite.\w*', 'ref.\w*'] +let g:deoplete#omni#input_patterns.tex = ['cite.\w*', 'ref.\w*', 'includegraphics.\w*'] +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*cite\a*%(\s*\[[^]]*\]){0,2}\s*\{[^}]*' + \ . '|\a*ref%(\s*\{[^}]*|range\s*\{[^,}]*%(}\{)?)' + \ . '|hyperref\s*\[[^]]*' + \ . '|includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*' + \ . '|%(include%(only)?|input)\s*\{[^}]*' + \ . '|\a*(gls|Gls|GLS)(pl)?\a*%(\s*\[[^]]*\]){0,2}\s*\{[^}]*' + \ . '|includepdf%(\s*\[[^]]*\])?\s*\{[^}]*' + \ . '|includestandalone%(\s*\[[^]]*\])?\s*\{[^}]*' + \ . ')' " FZF.vim let g:fzf_buffers_jump = 1 @@ -166,6 +181,7 @@ let g:UltiSnipsJumpForwardTrigger="<tab>" let g:UltiSnipsListSnippets="<c-l>" let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" +let g:UltiSnipsUsePythonVersion=3 " Vimtex let g:vimtex_fold_enabled=0 @@ -213,6 +229,7 @@ set smartcase set ignorecase set lazyredraw set hidden +set fo+=or set encoding=utf-8 " Makes it slow to source silent! set breakindent let &showbreak='--> ' |