Add vimtex and neotree
This commit is contained in:
parent
27c979a03b
commit
573c28d0d9
4 changed files with 65 additions and 15 deletions
29
lua/custom/plugins/vimtex.lua
Normal file
29
lua/custom/plugins/vimtex.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
-- File: lua/custom/plugins/vimtex.lua
|
||||
|
||||
return {
|
||||
'lervag/vimtex',
|
||||
config = function()
|
||||
-- vimtex configurations
|
||||
vim.g.vimtex_compiler_latexmk = {
|
||||
build_dir = 'build',
|
||||
executable = 'latexmk',
|
||||
options = {
|
||||
'-pdf',
|
||||
'-interaction=nonstopmode',
|
||||
'-synctex=1',
|
||||
},
|
||||
}
|
||||
|
||||
-- Enable automatic compilation on save
|
||||
vim.g.vimtex_autocompile = {
|
||||
continuous = 1,
|
||||
on_insert_leave = 1,
|
||||
}
|
||||
|
||||
-- Enable PDF preview using your favorite PDF viewer
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
-- vim.g.vimtex_view_general_viewer = 'okular'
|
||||
-- vim.g.vimtex_view_general_options = '--unique file:@pdf\\#src:@line@tex'
|
||||
end,
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue