From d28d7f3badda66f5da94be914f0423aa0fc4e6be Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 22 Dec 2024 17:18:18 -0600 Subject: [PATCH] fix(nvim): properly get `markview` state for toggling --- users/price/dots/.config/nvim/after/ftplugin/markdown.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/price/dots/.config/nvim/after/ftplugin/markdown.lua b/users/price/dots/.config/nvim/after/ftplugin/markdown.lua index edf50ce1..abbc8898 100644 --- a/users/price/dots/.config/nvim/after/ftplugin/markdown.lua +++ b/users/price/dots/.config/nvim/after/ftplugin/markdown.lua @@ -19,7 +19,7 @@ end, { vim.keymap.set("n", "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,