diff options
| author | bh <qn+git@excalibur.computer> | 2026-03-06 21:27:08 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-03-06 21:27:08 +0800 |
| commit | 70986c5e0aadf9275dc07e1b39d5f040c8af37a4 (patch) | |
| tree | 046fe77cab703d3105ca7200b6bbf3e5395120a4 /lua/config | |
| parent | ca8b1bd0a783244d60851445ba47aaa0f67cef19 (diff) | |
Fixed LaTeX issues
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/vimtex.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/config/vimtex.lua b/lua/config/vimtex.lua index 24679bf..4a1de11 100644 --- a/lua/config/vimtex.lua +++ b/lua/config/vimtex.lua @@ -16,6 +16,15 @@ return function() }, } + -- 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, |
