Add coc basic config, not fully working yet

This commit is contained in:
2025-03-17 10:57:05 +01:00
parent 746d48fb9f
commit 3f3ad51c2f
44 changed files with 2239 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
return {
-- literally the name, previews md in browser
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function(plugin)
if vim.fn.executable "npx" then
vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install")
else
vim.cmd [[Lazy load markdown-preview.nvim]]
vim.fn["mkdp#util#install"]()
end
end,
init = function()
if vim.fn.executable "npx" then vim.g.mkdp_filetypes = { "markdown" } end
end,
}