remove bibtex formating add zathura forwardSearch

This commit is contained in:
2025-04-03 18:38:40 +02:00
parent a51975d7a8
commit aca3555b53
2 changed files with 34 additions and 1 deletions

View File

@@ -62,7 +62,38 @@ local servers = {
},
},
},
texlab = {},
texlab = {
filetypes = { "tex", "bib" },
settings = {
texlab = {
auxDirectory = ".",
bibtexFormatter = "texlab",
build = {
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
executable = "latexmk",
forwardSearchAfter = false,
onSave = false
},
chktex = {
onEdit = false,
onOpenAndSave = false
},
diagnosticsDelay = 300,
formatterLineLength = -1,
forwardSearch = {
args = {}
},
latexFormatter = "latexindent",
latexindent = {
modifyLineBreaks = false
},
forwardSearch = {
executable = "zathura",
args = { "--synctex-forward", "%l:1:%f", "%p"}
},
},
},
},
}
-- Default handlers for LSP

View File

@@ -0,0 +1,2 @@
set synctex true
set synctex-editor-command "texlab inverse-search -i %{input} -l %{line}"