Skip to content

Commit

Permalink
fix(setup): setup function now uses configs field according to README
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulomaroff committed Jan 31, 2024
1 parent 06c4d62 commit 5bbc737
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/reactive.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---@class Reactive.Config
---@field builtin? table<string, boolean | table<string, any>>
---@field preset_configs? table<string, boolean | table<string, any>>
---@field configs? table<string, boolean | table<string, any>>
---@field load? table<string> | string

local M = {}
Expand Down Expand Up @@ -30,8 +30,8 @@ function M.setup(config)
end
end

if config.preset_configs and not vim.tbl_isempty(config.preset_configs) then
State:set_configs(config.preset_configs)
if config.configs and not vim.tbl_isempty(config.configs) then
State:set_configs(config.configs)
end

if config.load then
Expand Down

0 comments on commit 5bbc737

Please sign in to comment.