kickstart.nvim/lua/custom/plugins/vimtex.lua

19 lines
342 B
Lua
Raw Normal View History

2023-08-30 21:10:16 +03:00
local function get_editor(sys)
local editor
if sys == "Darwin" then
editor = "skim"
elseif sys == "Linux" then
editor = "zathura"
else -- windows?
editor = "zathura"
end
return editor
end
2023-04-20 14:36:32 +01:00
return {
"lervag/vimtex",
config = function()
2023-08-30 21:10:16 +03:00
vim.g.vimtex_view_method = get_editor(vim.loop.os_uname().sysname)
2023-04-20 14:36:32 +01:00
end
}