Feat: vimtex config

This commit is contained in:
Bertrand Benjamin 2021-09-17 06:17:59 +02:00
parent 23ba611075
commit c0065fa945
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
vim.g.maplocalleader = " "
vim.g.vimtex_compiler_latex = {}
vim.g.vimtex_compiler_latex["backend"] = 'nvim'
vim.g.vimtex_compiler_latex['backend'] = 'nvim'
vim.g.vimtex_compiler_latex['background'] = 1
vim.g.vimtex_compiler_latex[ 'build_dir'] = ''
vim.g.vimtex_compiler_latex[ 'callback'] = 0
vim.g.vimtex_compiler_latex[ 'continuous'] = 1
vim.g.vimtex_compiler_latex[ 'options'] = { '-pdf',
'-verbose',
'-file-line-error',
'-synctex=1',
'-interaction=nonstopmode',
'-silent',
'-shell-escape',
}
vim.g.vimtex_view_method = 'zathura'
-- Les fichiers sty et cls sont vus comme des fichiers tex
vim.cmd("autocmd BufRead,BufNewFile *.{sty,cls} setlocal syntax=tex")

View File

@ -73,6 +73,7 @@ return require('packer').startup(function()
use {
'lervag/vimtex',
config = [[require('config.vimtex')]],
}
-- Highlight on Yank