Skip to content

Commit

Permalink
fix: initialize data during Harpoon.setup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrzaw committed May 19, 2024
1 parent 0378a6c commit 04eb234
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/harpoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 04eb234

Please sign in to comment.