dotfiles/home/private_dot_config/nvim/lua/plugins/language/markdown.lua

22 lines
512 B
Lua
Raw Normal View History

2023-12-17 23:26:30 -06:00
return {
2024-06-13 13:22:15 -05:00
require("util").setup_lang({ treesitter = { "markdown", "markdown_inline" } }),
2024-01-29 10:34:05 -06:00
{
2024-06-13 13:22:15 -05:00
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
build = function()
vim.fn["mkdp#util#install"]()
end,
keys = {
{
"<leader>cp",
ft = "markdown",
"<cmd>MarkdownPreviewToggle<cr>",
desc = "Markdown Preview",
},
2024-01-29 10:34:05 -06:00
},
2024-06-13 13:22:15 -05:00
config = function()
vim.cmd([[do FileType]])
end,
2024-01-29 10:34:05 -06:00
},
2023-12-17 23:26:30 -06:00
}