mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
dev: automated commit - 2025-05-19 13:03:00
This commit is contained in:
parent
05ffc3930b
commit
8c05865d1c
2 changed files with 7 additions and 41 deletions
|
@ -1,32 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"frabjous/knap",
|
||||
lazy = false,
|
||||
config = function()
|
||||
-- Configure KNAP settings
|
||||
vim.g.knap_settings = {
|
||||
mdoutputext = "pdf",
|
||||
mdtopdf = "pandoc -o %outputfile% --pdf-engine=xelatex",
|
||||
mdtopdfviewerlaunch = "zathura %outputfile%",
|
||||
mdtopdfviewerrefresh = "none",
|
||||
mdtopdfbufferasstdin = true,
|
||||
}
|
||||
|
||||
-- Set up keymappings for all markdown files
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "markdown", "pandoc", "md" },
|
||||
callback = function()
|
||||
vim.keymap.set("n", "<leader>kt", function()
|
||||
require("knap").toggle_autopreviewing()
|
||||
end, { buffer = true, desc = "KNAP toggle auto-preview" })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"chomosuke/typst-preview.nvim",
|
||||
lazy = false, -- or ft = 'typst'
|
||||
version = "1.*",
|
||||
opts = {}, -- lazy.nvim will implicitly calls `setup {}`
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue