chore(nvim): fix pdf reader in mac/linux

This commit is contained in:
Afonso Franco 2024-10-07 20:16:38 +01:00
parent 7705907055
commit d6537dce41
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
3 changed files with 13 additions and 9 deletions

View file

@ -242,9 +242,13 @@ return {
{
"lervag/vimtex",
event = "VeryLazy",
filetypes = {"tex"},
config = function()
vim.g.vimtex_view_method = 'skim'
if vim.loop.os_uname().sysname == "Darwin" then
vim.g.vimtex_view_method = 'skim'
else
vim.g.vimtex_view_method = 'zathura'
end
vim.g.vimtex_compiler_methor = 'pdflatex'
end,
},