diff options
Diffstat (limited to 'lua/user/texlab.lua')
| -rw-r--r-- | lua/user/texlab.lua | 20 |
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 + }, + }, + }, +}) |
