summaryrefslogtreecommitdiff
path: root/lua/user/texlab.lua
diff options
context:
space:
mode:
authorYour Name <you@example.com>2024-07-03 17:03:56 +0100
committerYour Name <you@example.com>2024-07-03 17:03:56 +0100
commitc959b2112fb4c82b5bfd410df21706455225bd40 (patch)
tree6774868448d127c2f560827de8e5edbd868a2832 /lua/user/texlab.lua
minor additionsHEADmaster
Diffstat (limited to 'lua/user/texlab.lua')
-rw-r--r--lua/user/texlab.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/user/texlab.lua b/lua/user/texlab.lua
new file mode 100644
index 0000000..c38a5bb
--- /dev/null
+++ b/lua/user/texlab.lua
@@ -0,0 +1,20 @@
+local lspconfig = require("lspconfig")
+local forwardSearch_args = {'--synctex-forward', '%l:1:%f', '%p'}
+
+lspconfig.texlab.setup({
+ settings = {
+ texlab = {
+ auxDirectory = ".",
+ bibtexFormatter = "texlab",
+ build = {
+ args = { "-pv", "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
+ executable = "latexmk",
+ onSave = true
+ },
+ forwardSearch = {
+ executable = "zathura",
+ args = forwardSearch_args
+ },
+ },
+ },
+})