This commit is contained in:
abs3nt 2023-03-07 20:10:46 -08:00
parent 7bf59d38c5
commit d964a2e4d1
Signed by: abs3nt
GPG Key ID: FDC6662313FA9386

View File

@ -23,14 +23,6 @@ return {
vim.g.mkdp_highlight_css = os.getenv("XDG_CACHE_HOME") .. '/wal/colors.css' vim.g.mkdp_highlight_css = os.getenv("XDG_CACHE_HOME") .. '/wal/colors.css'
vim.g.mkdp_browser = 'rose' vim.g.mkdp_browser = 'rose'
vim.g.mkdp_echo_preview_url = 1 vim.g.mkdp_echo_preview_url = 1
local markdown_preview_group = vim.api.nvim_create_augroup("MarkdownPreview", {})
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*.md",
callback = function()
vim.cmd([[:MarkdownPreview]])
end,
group = markdown_preview_group,
})
end, end,
ft = { "markdown" } ft = { "markdown" }
}, },