Add Markdown Preview plugin
This commit is contained in:
parent
483c103f96
commit
811016c432
1 changed files with 16 additions and 0 deletions
16
.config/nvim/lua/plugins/md_preview.lua
Normal file
16
.config/nvim/lua/plugins/md_preview.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"selimacerbas/markdown-preview.nvim",
|
||||||
|
dependencies = { "selimacerbas/live-server.nvim" },
|
||||||
|
config = function()
|
||||||
|
require("markdown_preview").setup({
|
||||||
|
-- all optional; sane defaults shown
|
||||||
|
port = 8421,
|
||||||
|
open_browser = true,
|
||||||
|
debounce_ms = 300,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
vim.keymap.set("n", "<leader>vp", "<cmd>MarkdownPreview<cr>", { desc = "View Markdown Preview" }),
|
||||||
|
vim.keymap.set("n", "<leader>vP", "<cmd>MarkdownPreview<cr>", { desc = "Hide Markdown Preview" })
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue