diff options
| author | Your Name <you@example.com> | 2024-07-03 17:03:56 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-07-03 17:03:56 +0100 |
| commit | c959b2112fb4c82b5bfd410df21706455225bd40 (patch) | |
| tree | 6774868448d127c2f560827de8e5edbd868a2832 /lua/config/texlab.lua | |
Diffstat (limited to 'lua/config/texlab.lua')
| -rw-r--r-- | lua/config/texlab.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/config/texlab.lua b/lua/config/texlab.lua new file mode 100644 index 0000000..c38a5bb --- /dev/null +++ b/lua/config/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 + }, + }, + }, +}) |
