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

23 lines
474 B
Lua
Raw Normal View History

2023-12-17 23:26:30 -06:00
return {
2024-01-29 10:34:05 -06:00
require("util").setup_lang({treesitter = {"markdown", "markdown_inline"}}),
{
"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",
},
},
config = function()
vim.cmd([[do FileType]])
end,
}
2023-12-17 23:26:30 -06:00
}