summaryrefslogtreecommitdiff
path: root/lua/user/lsp/settings/texlab.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-11 15:34:07 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-11 15:34:07 +0100
commitf3403c95fca6779a766763b040b7ae9650f39c33 (patch)
treee12957d1209c23182c9a1b33e64b2a041f578924 /lua/user/lsp/settings/texlab.lua
parentadb901bb02e1b205731156976b4ea6d765b24432 (diff)
Mainly LSP changes, especially concerning latex. Changed from ltex to texlab
Diffstat (limited to 'lua/user/lsp/settings/texlab.lua')
-rw-r--r--lua/user/lsp/settings/texlab.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/lua/user/lsp/settings/texlab.lua b/lua/user/lsp/settings/texlab.lua
new file mode 100644
index 0000000..58e8743
--- /dev/null
+++ b/lua/user/lsp/settings/texlab.lua
@@ -0,0 +1,38 @@
+return {
+
+ settings = {
+
+ texlab = {
+ filetype="latex",
+ auxDirectory = ".",
+ bibtexFormatter = "texlab",
+ build = {
+ args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
+ executable = "latexmk",
+ forwardSearchAfter = true,
+ onSave = true
+ },
+ chktex = {
+ onEdit = false,
+ onOpenAndSave = false
+ },
+ diagnosticsDelay = 300,
+ formatterLineLength = 80,
+ forwardSearch = {
+ executable = 'zathura',
+ args = {
+ '--synctex-editor-command',
+ [[nvim-texlabconfig -file '%{input}' -line %{line}]],
+ '--synctex-forward',
+ '%l:1:%f',
+ '%p',
+ },
+ },
+ latexFormatter = "latexindent",
+ latexindent = {
+ modifyLineBreaks = false
+ },
+ single_file_support = true,
+ }
+}
+}