nvim/lua/plugins/markdown.lua

44 lines
1.5 KiB
Lua
Raw Permalink Normal View History

2024-06-17 15:22:39 +07:00
return {
2024-08-19 20:05:49 +07:00
{
"MeanderingProgrammer/markdown.nvim",
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = function()
require("render-markdown").setup {}
end,
},
{
"brianhuster/live-preview.nvim",
cmd = { "LivePreview" },
2024-08-19 20:05:49 +07:00
ft = { "markdown" },
config = true,
2024-08-19 20:05:49 +07:00
},
-- {
-- "toppair/peek.nvim",
-- ft = { "markdown" },
-- cmd = { "Peek" },
-- build = "deno task --quiet build:fast",
-- opts = function()
-- vim.api.nvim_create_autocmd("FileType", {
-- desc = "Create peek command on markdown ft",
-- pattern = "markdown",
-- callback = function(ev)
-- vim.api.nvim_buf_create_user_command(ev.buf, "Peek", function(ctx)
-- local peek = require "peek"
-- if peek.is_open() then
-- if ctx.bang then
-- peek.close()
-- end
-- return
-- end
-- peek.open()
-- end, { bang = true })
-- end,
-- })
-- return {
-- app = { "chromium", "--new-window" },
-- }
-- end,
-- },
2024-06-17 15:22:39 +07:00
}