MD preview plugin

This commit is contained in:
nomadics9 2024-10-12 16:59:48 +03:00
parent c5392c90ce
commit 4bb7e86d79
2 changed files with 11 additions and 9 deletions

View file

@ -861,7 +861,7 @@ require('lazy').setup({
-- My plugins -- My plugins
require 'kickstart.plugins.bufferline', require 'kickstart.plugins.bufferline',
-- require 'kickstart.plugins.markdown-preview', require 'kickstart.plugins.markdown-preview',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config. -- This is the easiest way to modularize your config.

View file

@ -1,9 +1,11 @@
return { return {
"iamcco/markdown-preview.nvim", 'iamcco/markdown-preview.nvim',
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, opts = {
build = "cd app && yarn install", cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
build = 'cd app && yarn install',
init = function() init = function()
vim.g.mkdp_filetypes = { "markdown" } vim.g.mkdp_filetypes = { 'markdown' }
end, end,
ft = { "markdown" }, ft = { 'markdown' },
}, },
}