Skip to content

Commit

Permalink
fix: Fixed sub-command implementation
Browse files Browse the repository at this point in the history
Only 2 autocmds are used now.

Ref: #177
  • Loading branch information
OXY2DEV committed Nov 11, 2024
1 parent dfd6323 commit 2f6fa97
Show file tree
Hide file tree
Showing 3 changed files with 600 additions and 465 deletions.
15 changes: 9 additions & 6 deletions lua/definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
---@field [integer] { redraw: integer, delete: integer, splitview: integer }


---@class markview.state Various plugin states.
---@class markview.states Various plugin states.
---
--- Stores autocmd IDs.
---@field autocmds { [string]: table }
---
--- Determines whether the plugin is enabled or not.
---@field enable boolean
Expand All @@ -20,22 +23,22 @@
---
--- Plugin states in different buffers.
--- Can be used to disable preview in specific buffers.
---@field buf_states { [integer]: boolean }
---@field buffer_states { [integer]: boolean }
---
--- Hybrid mode states in different buffers.
--- Can be used to disable hybrid mode in specific buffers.
---@field buf_hybrid_states { [integer]: boolean }
---@field hybrid_states { [integer]: boolean }
---
---
--- When not `nil` represents the source buffer for "split view".
--- Should become `nil` when disabling "split view".
---@field split_source integer?
---@field splitview_source integer?
---
--- Buffer where the preview is shown.
--- It's text updates on every redraw cycle of the plugin.
---@field split_buffer integer?
---@field splitview_buffer integer?
---
--- Window where the preview is shown.
--- By default it's value is `nil`.
---@field split_window integer?
---@field splitview_window integer?

Loading

0 comments on commit 2f6fa97

Please sign in to comment.