fix(nvim): properly get markview state for toggling

This commit is contained in:
Price Hiller 2024-12-22 17:18:18 -06:00
parent 84d3d2ac6d
commit d28d7f3bad
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -19,7 +19,7 @@ end, {
vim.keymap.set("n", "<leader>ft", function()
vim.cmd("Markview toggle")
local mview_state = markview.state.enabled and "Enabled" or "Disabled"
local mview_state = markview.state.enable and "Enabled" or "Disabled"
vim.notify(("Markview %s"):format(mview_state), vim.log.levels.INFO, { title = "Markview" })
end, {
buffer = true,