summaryrefslogtreecommitdiff
path: root/lua/config/vimtex.lua
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2026-04-09 15:46:00 +0800
committerbh <qn+git@excalibur.computer>2026-04-09 15:46:00 +0800
commit6c81e38e15455fb3074d9d46c94ec2c951b5a382 (patch)
treec103a81c733ff200b4114f3a1caee058c10f374e /lua/config/vimtex.lua
parent0a67a5614c1716c8ccf46980e13826616aa70c28 (diff)
Fix indentation
Diffstat (limited to 'lua/config/vimtex.lua')
-rw-r--r--lua/config/vimtex.lua68
1 files changed, 34 insertions, 34 deletions
diff --git a/lua/config/vimtex.lua b/lua/config/vimtex.lua
index 4a1de11..e7c4998 100644
--- a/lua/config/vimtex.lua
+++ b/lua/config/vimtex.lua
@@ -1,39 +1,39 @@
return function()
- -- Use Zathura as the PDF viewer
- vim.g.vimtex_view_method = "zathura"
+ -- Use Zathura as the PDF viewer
+ vim.g.vimtex_view_method = "zathura"
- -- Compile using latexmk automatically
- vim.g.vimtex_compiler_method = "latexmk"
- vim.g.vimtex_compiler_latexmk = {
- build_dir = "build", -- Keep files in a separate folder
- callback = 1,
- continuous = 1, -- Automatically recompile on save
- executable = "latexmk",
- options = {
- "-pdf",
- "-interaction=nonstopmode",
- "-synctex=1",
- },
- }
+ -- Compile using latexmk automatically
+ vim.g.vimtex_compiler_method = "latexmk"
+ vim.g.vimtex_compiler_latexmk = {
+ build_dir = "build", -- Keep files in a separate folder
+ callback = 1,
+ continuous = 1, -- Automatically recompile on save
+ executable = "latexmk",
+ options = {
+ "-pdf",
+ "-interaction=nonstopmode",
+ "-synctex=1",
+ },
+ }
- -- Auto hard-wrap at 80 columns for .tex files
- vim.api.nvim_create_autocmd("FileType", {
- pattern = "tex",
- callback = function()
- vim.opt_local.textwidth = 80
- vim.opt_local.formatoptions:append("t")
- end,
- })
+ -- Auto hard-wrap at 80 columns for .tex files
+ vim.api.nvim_create_autocmd("FileType", {
+ pattern = "tex",
+ callback = function()
+ vim.opt_local.textwidth = 80
+ vim.opt_local.formatoptions:append("t")
+ end,
+ })
- -- Optional: disable conceal for clearer LaTeX text
- vim.g.vimtex_syntax_conceal = {
- accents = 0,
- ligatures = 0,
- cites = 0,
- fancy = 0,
- spacing = 0,
- greek = 0,
- math_delimiters = 0,
- math_super_sub = 0,
- }
+ -- Optional: disable conceal for clearer LaTeX text
+ vim.g.vimtex_syntax_conceal = {
+ accents = 0,
+ ligatures = 0,
+ cites = 0,
+ fancy = 0,
+ spacing = 0,
+ greek = 0,
+ math_delimiters = 0,
+ math_super_sub = 0,
+ }
end