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:
2 files changed
+5
-6
No files matched your search
@@ -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' },
|
||||
},
|
||||
}
|
||||
@@ -6,7 +6,7 @@ return {
|
||||
build = ':TSUpdate',
|
||||
event = { 'BufReadPost', 'BufNewFile' },
|
||||
config = function()
|
||||
require('nvim-treesitter.configs').setup({
|
||||
require('nvim-treesitter').setup({
|
||||
ensure_installed = require('config.extensions').ts_parsers,
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
|
||||
Reference in new issue
Block a user