50 lines
1.9 KiB
Lua
50 lines
1.9 KiB
Lua
return { {
|
|
'richardbizik/nvim-toc',
|
|
ft = { "md", "markdown" },
|
|
config = true,
|
|
}, {
|
|
{
|
|
'ChuufMaster/markdown-toc',
|
|
opts = {
|
|
|
|
-- The heading level to match (i.e the number of "#"s to match to) max 6
|
|
heading_level_to_match = -1,
|
|
|
|
-- Set to True display a dropdown to allow you to select the heading level
|
|
ask_for_heading_level = true,
|
|
|
|
-- TOC default string
|
|
-- WARN
|
|
toc_format = '%s- [%s](<%s#%s>)',
|
|
},
|
|
ft = { "md", "markdown" },
|
|
}, {
|
|
'SCJangra/table-nvim',
|
|
ft = {'markdown', 'md' },
|
|
opts = {},
|
|
}
|
|
},
|
|
{
|
|
"iamcco/markdown-preview.nvim",
|
|
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
|
build = "cd app && npm install",
|
|
init = function()
|
|
vim.g.mkdp_filetypes = { "markdown" }
|
|
end,
|
|
ft = { "markdown", "md" },
|
|
},
|
|
{
|
|
"brianhuster/live-preview.nvim",
|
|
opts = {
|
|
cmd = "LivePreview", -- Main command of live-preview.nvim
|
|
port = 5500, -- Port to run the live preview server on.
|
|
autokill = false, -- If true, the plugin will autokill other processes running on the same port (except for Neovim) when starting the server.
|
|
browser = 'default', -- Terminal command to open the browser for live-previewing (eg. 'firefox', 'flatpak run com.vivaldi.Vivaldi'). By default, it will use the default browser.
|
|
dynamic_root = false, -- If true, the plugin will set the root directory to the previewed file's directory. If false, the root directory will be the current working directory (`:lua print(vim.uv.cwd())`).
|
|
sync_scroll = false, -- If true, the plugin will sync the scrolling in the browser as you scroll in the Markdown files in Neovim.
|
|
picker = nil, -- Picker to use for opening files. 3 choices are available: 'telescope', 'fzf-lua', 'mini.pick'. If nil, the plugin look for the first available picker when you call the `pick` command.
|
|
},
|
|
enabled = false,
|
|
}
|
|
}
|