mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
vim: improve VimTex experience
This commit is contained in:
parent
66e0bf911b
commit
815da41076
@ -119,12 +119,18 @@ if !exists('g:ycm_semantic_triggers')
|
||||
endif
|
||||
let g:ycm_semantic_triggers.tex = g:vimtex#re#youcompleteme
|
||||
"let g:vimtex_view_method='zathura'
|
||||
let g:tex_flavor='latex'
|
||||
let g:tex_flavor='xelatex'
|
||||
let g:vimtex_indent_enabled = 0 " auto-indentation is wrong and annoying
|
||||
let g:syntastic_tex_checkers = ['chktex']
|
||||
autocmd FileType tex silent VimtexCompile
|
||||
autocmd FileType tex setlocal spell
|
||||
autocmd FileType tex TagbarOpen
|
||||
augroup vimtex
|
||||
autocmd!
|
||||
autocmd BufWritePost tex call vimtex#toc#refresh()
|
||||
autocmd BufWritePost tex call vimtex#labels#refresh()
|
||||
autocmd BufWritePost tex silent VimtexCompile
|
||||
augroup END
|
||||
|
||||
|
||||
" Vim-Airline config
|
||||
let g:Powerline_symbols = 'fancy'
|
||||
|
Loading…
Reference in New Issue
Block a user