From 04eb23469a1f27d58d99ee6a503474d7d2ea7904 Mon Sep 17 00:00:00 2001 From: Max Zawisa Date: Sun, 19 May 2024 17:43:41 -0400 Subject: [PATCH] fix: initialize data during Harpoon.setup --- lua/harpoon/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/harpoon/init.lua b/lua/harpoon/init.lua index e34a7971..c95a5a8c 100644 --- a/lua/harpoon/init.lua +++ b/lua/harpoon/init.lua @@ -147,6 +147,7 @@ function Harpoon.setup(self, partial_config) ---@diagnostic disable-next-line: param-type-mismatch self.config = Config.merge_config(partial_config, self.config) self.ui:configure(self.config.settings) + self.data = Data.Data:new(self.config) self._extensions:emit(Extensions.event_names.SETUP_CALLED, self.config) ---TODO: should we go through every seen list and update its config?