diff --git a/lua/definitions.lua b/lua/definitions.lua index 8e5bde9..a5d9eb6 100644 --- a/lua/definitions.lua +++ b/lua/definitions.lua @@ -8,22 +8,17 @@ local M = {}; --- Table containing various plugin states. ---@class mkv.state --- ----@field enable boolean Is the plugin enabled? ----@field hybrid_mode boolean Is hybrid mode enabled? ---@field attached_buffers integer[] List of attached buffers. --- ----@field buffer_states { [integer]: { enable: boolean, hybrid_mode: boolean?, events: boolean } } Buffer local states. +---@field buffer_states { [integer]: { enable: boolean, hybrid_mode: boolean? } } Buffer local states. --- ---@field splitview_source? integer Source buffer for hybrid mode. ---@field splitview_buffer? integer Preview buffer for hybrid mode. ---@field splitview_window? integer Preview window for hybrid mode. ---@field splitview_cstate? { enable: boolean, hybrid_mode: boolean?, events: boolean } Cached state for the source buffer. M.states = { - enable = true, - hybrid_mode = true, buffer_states = { [10] = { - events = false, enable = true, hybrid_mode = true } diff --git a/lua/markview.lua b/lua/markview.lua index 734ba98..a285e32 100644 --- a/lua/markview.lua +++ b/lua/markview.lua @@ -138,7 +138,7 @@ end --- Renders preview. ---@param buffer integer? ----@param state { enable: boolean, hybrid_mode: boolean?, events: boolean }? +---@param state { enable: boolean, hybrid_mode: boolean? }? markview.render = function (buffer, state) ---+${lua} @@ -308,8 +308,7 @@ markview.splitview_render = function (update_content, update_preview) if update_preview ~= false then markview.render(pre_buf, { enable = true, - hybrid_mode = false, - events = false + hybrid_mode = false }); end ---_