chg: Disable grammar checking in vimtex

This commit is contained in:
Sayantan Santra 2024-03-26 00:50:37 -05:00
parent e38a41a9e0
commit cd7b3d5acc
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,11 @@
-- Enable languagetool support using YaLafi
vim.g.vimtex_grammar_vlty = { lt_command = "languagetool" }
-- -- Enable languagetool support using YaLafi
-- vim.g.tex_flavor = "latex"
-- vim.g.vimtex_grammar_vlty = {
-- lt_command = 'languagetool',
-- show_suggestions = 1,
-- language = 'en_us',
-- shell_options = ' --packages "*" --equation-punctuation display'
-- }
-- Compile once by ;lo and also add proper line-breaking
vim.api.nvim_create_autocmd(
@ -8,7 +14,7 @@ vim.api.nvim_create_autocmd(
pattern = 'tex',
group = vim.api.nvim_create_augroup('vimrc_tex', {}),
callback = function()
vim.keymap.set('n', '<localleader>lo', ":silent VimtexCompileSS<cr>", {buffer = true })
vim.keymap.set('n', '<localleader>lo', ":silent VimtexCompileSS<cr>", { buffer = true })
vim.opt.linebreak = true
vim.opt.tw = 140
end,
@ -20,4 +26,3 @@ vim.g.vimtex_view_method = 'zathura_simple'
-- Use a temporary directory for aux files
vim.g.vimtex_compiler_latexmk = { aux_dir = "/tmp/latexmk" }