Feat: vimtex config
This commit is contained in:
parent
c897b57295
commit
ea98f4be74
23
nvim/.config/nvim/lua/config/vimtex.lua
Normal file
23
nvim/.config/nvim/lua/config/vimtex.lua
Normal 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")
|
@ -73,6 +73,7 @@ return require('packer').startup(function()
|
||||
|
||||
use {
|
||||
'lervag/vimtex',
|
||||
config = [[require('config.vimtex')]],
|
||||
}
|
||||
|
||||
-- Highlight on Yank
|
||||
|
Loading…
Reference in New Issue
Block a user