initial commit
This commit is contained in:
21
homemanager/neovim/lua/plugins/spec/vimtex.lua
Normal file
21
homemanager/neovim/lua/plugins/spec/vimtex.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
function preview()
|
||||
if vim.bo.filetype ~= "tex" then
|
||||
return
|
||||
end
|
||||
|
||||
print("Previewing " .. vim.fn.expand("%:p"))
|
||||
|
||||
vim.cmd("VimtexCompile")
|
||||
end
|
||||
|
||||
return {
|
||||
'lervag/vimtex',
|
||||
-- event = "InsertEnter",
|
||||
config = function()
|
||||
vim.g.vimtex_view_method = "zathura"
|
||||
vim.keymap.set("n", "<leader>p", preview)
|
||||
end,
|
||||
lazy = false,
|
||||
enabled = true,
|
||||
dependencies = {}
|
||||
}
|
||||
Reference in New Issue
Block a user