feat(lua/plugins): improve markdown-preview and treesitter setup

Enhancements:
- Refined markdown-preview configuration to use command toggles and lazy loading
- Simplified treesitter setup by using direct nvim-treesitter API

New Features:
- Added support for MarkdownPreviewStop command
- Updated ft configuration to use a table for markdown filetypes

Bug Fixes:
- None
This commit is contained in:
sankalp committed 2026-03-12 20:46:00 +05:45
1 parent d3f50a7355
commit 5bdce5f1a8
2 files changed
+5 -6

No files matched your search

+4 -5
View File
@@ -106,11 +106,10 @@ return {
-- markdown preview
{
'iamcco/markdown-preview.nvim',
build = 'cd app && yarn install',
init = function()
vim.g.mkdp_filetypes = { 'markdown' }
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.fn['mkdp#util#install']()
end,
ft = 'markdown',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview' },
},
}