Skip to content

Commit a569876

Browse files
committed
feat(previewer): re-enable markview.nvim
1 parent 14e8ac0 commit a569876

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

lua/fzf-lua/previewer/builtin.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,12 +748,9 @@ function Previewer.base:update_render_markdown()
748748
end
749749
if package.loaded["render-markdown"] then
750750
require("render-markdown.core.ui").update(bufnr, winid, "FzfLua", true)
751-
-- Holding off markview support until issues are ironed out
752-
-- https://github.com/OXY2DEV/markview.nvim/issues/216
753-
-- elseif package.loaded["markview"] then
754-
-- local mv = require("markview").commands;
755-
-- mv.clear(bufnr)
756-
-- mv.redraw(bufnr)
751+
elseif package.loaded["markview"] then
752+
local cmds = package.loaded["markview"].commands
753+
if cmds and cmds.redraw then cmds.attach(bufnr, true) end
757754
end
758755
end
759756

0 commit comments

Comments
 (0)