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
|
-- markdown preview
|
||||||
{
|
{
|
||||||
'iamcco/markdown-preview.nvim',
|
'iamcco/markdown-preview.nvim',
|
||||||
build = 'cd app && yarn install',
|
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
|
||||||
init = function()
|
ft = { 'markdown' },
|
||||||
vim.g.mkdp_filetypes = { 'markdown' }
|
build = function()
|
||||||
|
vim.fn['mkdp#util#install']()
|
||||||
end,
|
end,
|
||||||
ft = 'markdown',
|
|
||||||
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview' },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@ return {
|
|||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
event = { 'BufReadPost', 'BufNewFile' },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
require('nvim-treesitter.configs').setup({
|
require('nvim-treesitter').setup({
|
||||||
ensure_installed = require('config.extensions').ts_parsers,
|
ensure_installed = require('config.extensions').ts_parsers,
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
|
|||||||
Reference in new issue
Block a user