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

View file

@ -1,5 +1,11 @@
-- Enable languagetool support using YaLafi -- -- Enable languagetool support using YaLafi
vim.g.vimtex_grammar_vlty = { lt_command = "languagetool" } -- 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 -- Compile once by ;lo and also add proper line-breaking
vim.api.nvim_create_autocmd( vim.api.nvim_create_autocmd(
@ -8,7 +14,7 @@ vim.api.nvim_create_autocmd(
pattern = 'tex', pattern = 'tex',
group = vim.api.nvim_create_augroup('vimrc_tex', {}), group = vim.api.nvim_create_augroup('vimrc_tex', {}),
callback = function() 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.linebreak = true
vim.opt.tw = 140 vim.opt.tw = 140
end, end,
@ -20,4 +26,3 @@ vim.g.vimtex_view_method = 'zathura_simple'
-- Use a temporary directory for aux files -- Use a temporary directory for aux files
vim.g.vimtex_compiler_latexmk = { aux_dir = "/tmp/latexmk" } vim.g.vimtex_compiler_latexmk = { aux_dir = "/tmp/latexmk" }