summaryrefslogtreecommitdiff
path: root/lua/lang/tex.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-15 05:44:25 +0430
committerGitHub <[email protected]>2021-07-14 21:14:25 -0400
commitf95e150518e40f08a2cb31365e90895e31465d7e (patch)
treeeaae7a371124c4fb0a7778a79768a26be89d85a9 /lua/lang/tex.lua
parent7f11162bd80b37af8ae67e41f10e962baacf8047 (diff)
Default config reformat (#951)
Diffstat (limited to 'lua/lang/tex.lua')
-rw-r--r--lua/lang/tex.lua35
1 files changed, 33 insertions, 2 deletions
diff --git a/lua/lang/tex.lua b/lua/lang/tex.lua
index 39dfd29d..7ebc84a0 100644
--- a/lua/lang/tex.lua
+++ b/lua/lang/tex.lua
@@ -1,8 +1,39 @@
local M = {}
M.config = function()
- -- TODO: implement config for language
- return "No config available!"
+ O.lang.latex = {
+ filetypes = { "tex", "bib" },
+ aux_directory = nil,
+ bibtex_formatter = "texlab",
+ diagnostics_delay = 300,
+ formatter_line_length = 80,
+ latex_formatter = "latexindent",
+ build = {
+ executable = "latexmk",
+ args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
+ on_save = false,
+ forward_search_after = false,
+ },
+ chktex = {
+ on_open_and_save = false,
+ on_edit = false,
+ },
+ forward_search = {
+ executable = nil,
+ args = {},
+ },
+ latexindent = {
+ ["local"] = nil,
+ modify_line_breaks = false,
+ },
+ diagnostics = {
+ virtual_text = { spacing = 0, prefix = "ï„‘" },
+ signs = true,
+ underline = true,
+ },
+ auto_save = false,
+ ignore_errors = {},
+ }
end
M.format = function()