From 5bbc737bdecff80a393412290ef34b98d65e9f5d Mon Sep 17 00:00:00 2001 From: rasulomaroff Date: Wed, 31 Jan 2024 00:51:41 -0800 Subject: [PATCH] fix(setup): setup function now uses `configs` field according to README --- lua/reactive.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/reactive.lua b/lua/reactive.lua index e0e36e5..9cea5b7 100644 --- a/lua/reactive.lua +++ b/lua/reactive.lua @@ -1,6 +1,6 @@ ---@class Reactive.Config ---@field builtin? table> ----@field preset_configs? table> +---@field configs? table> ---@field load? table | string local M = {} @@ -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