nvim add LaTeX configs

This commit is contained in:
arnaucube
2022-02-10 20:02:49 +01:00
parent 01db0d7967
commit 54dff44879
2 changed files with 17 additions and 2 deletions

View File

@@ -51,6 +51,9 @@ Plug 'tomlion/vim-solidity'
" circom
Plug 'iden3/vim-circom-syntax'
" LaTeX support. It needs latexmk & zathura
Plug 'lervag/vimtex'
"
" " deoplete
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
@@ -193,6 +196,20 @@ let g:rainbow_active = 1
au BufRead,BufNewFile *.circom set filetype=circom
au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit
"" LaTeX vimtex config:
" Important: This config needs latexmk & zathura to be installed.
"
" This is necessary for VimTeX to load properly. The "indent" is optional.
" Note that most plugin managers will do this automatically.
filetype plugin indent on
" This enables Vim's and neovim's syntax-related features. Without this, some
" VimTeX features will not work (see ":help vimtex-requirements" for more
" info).
syntax enable
" Viewer options: One may configure the viewer either by specifying a built-in
" viewer method:
let g:vimtex_view_method = 'zathura'
"" sage syntax
augroup filetypedetect
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python