[nvim] made vimtex use tectonic with entr

This commit is contained in:
Afonso Franco 2024-11-12 15:39:00 +00:00
parent d831c21b46
commit 1270697cd6
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54

View file

@ -199,7 +199,7 @@ return {
vim.keymap.set("n", "<space>k", vim.lsp.buf.signature_help, bufopts)
vim.keymap.set("n", "<space>D", vim.lsp.buf.type_definition, bufopts)
vim.keymap.set("n", "<space>rn", rename_func, bufopts_expr)
vim.keymap.set({"n","v"}, "<space>ca", vim.lsp.buf.code_action, bufopts)
vim.keymap.set({ "n", "v" }, "<space>ca", vim.lsp.buf.code_action, bufopts)
vim.keymap.set("n", "<space>ge", vim.diagnostic.goto_next, bufopts)
vim.keymap.set("n", "<space>gE", vim.diagnostic.goto_prev, bufopts)
vim.keymap.set("n", "<space>fo", function() conform.format({ lsp_fallback = true }) end, bufopts)
@ -291,7 +291,8 @@ return {
else
vim.g.vimtex_view_method = 'zathura'
end
vim.g.vimtex_compiler_methor = 'pdflatex'
vim.g.vimtex_compiler_method = 'generic'
vim.g.vimtex_compiler_generic = { command = 'ls *.tex | entr -n -c tectonic /_ --synctex --keep-logs' }
end,
},
{