summaryrefslogtreecommitdiff
path: root/ftplugin/tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/tex.lua')
-rw-r--r--ftplugin/tex.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/ftplugin/tex.lua b/ftplugin/tex.lua
index 87f7c598..a81a6ff7 100644
--- a/ftplugin/tex.lua
+++ b/ftplugin/tex.lua
@@ -10,6 +10,7 @@ require("lspconfig").texlab.setup {
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_fold_enabled = 0
+vim.g.vimtex_quickfix_ignore_filters = O.lang.latex.ignore_errors
O.plugin.which_key.mappings["L"] = {
name = "+Latex",
@@ -32,3 +33,7 @@ vim.api.nvim_exec(
]],
false
)
+if (O.lang.latex.auto_save)
+then
+ vim.api.nvim_exec([[au FocusLost * :wa]],false)
+end