From 82848550e7489772c505e129efbc453a401e8759 Mon Sep 17 00:00:00 2001 From: rasulomaroff Date: Sun, 14 Jan 2024 23:12:27 -0800 Subject: [PATCH] refactor: renames TriggerConfig type to ModeConfig --- lua/reactive/snapshot.lua | 2 +- lua/reactive/state.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/reactive/snapshot.lua b/lua/reactive/snapshot.lua index 20c4bc3..de9c8de 100644 --- a/lua/reactive/snapshot.lua +++ b/lua/reactive/snapshot.lua @@ -205,7 +205,7 @@ end ---@param preset_name string ---@param inc_mode string ----@param inc_mode_config Reactive.TriggerConfig +---@param inc_mode_config Reactive.ModeConfig ---@param constraints TriggerConstraints function M:merge_snapshot(preset_name, inc_mode, inc_mode_config, constraints) if Util.is_op(inc_mode) and inc_mode_config.operators then diff --git a/lua/reactive/state.lua b/lua/reactive/state.lua index 91d9e3b..1b6895d 100644 --- a/lua/reactive/state.lua +++ b/lua/reactive/state.lua @@ -3,11 +3,11 @@ local Util = require 'reactive.util' ---@class TriggerConstraints: { winhl?: V, hl?: V } ----@class Reactive.TriggerConfig +---@class Reactive.ModeConfig ---@field winhl? table> ---@field hl? table> ----@field operators? table ----@field opfuncs? table +---@field operators? table +---@field opfuncs? table ---@field exact? boolean | TriggerConstraints ---@field frozen? boolean | TriggerConstraints ---@field from? fun(modes: { from: string, to: string }) @@ -18,7 +18,7 @@ local Util = require 'reactive.util' ---@field lazy? boolean ---@field priority? number ---@field skip? TriggerConstraints | fun(): boolean ----@field modes table, Reactive.TriggerConfig> +---@field modes table, Reactive.ModeConfig> ---@field static? table ---@field init? fun(preset: Reactive.Preset)