diff --git a/laptop/plugin/vimtex.lua b/laptop/plugin/vimtex.lua index 0a3a6f4..bde57b4 100644 --- a/laptop/plugin/vimtex.lua +++ b/laptop/plugin/vimtex.lua @@ -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', 'lo', ":silent VimtexCompileSS", {buffer = true }) + vim.keymap.set('n', 'lo', ":silent VimtexCompileSS", { 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" } -