ThePrimeagen / harpoon

MIT License
6.83k stars 366 forks source link

fix: initialize data during Harpoon.setup #598

Closed maxrzaw closed 4 months ago

maxrzaw commented 4 months ago

fixes #577

Since Data:new() was being called before Harpoon.setup(config), it was loading the file for the hash of vim.loop.cwd() rather than key. This causes the data file for key to be overwritten when sync is called.

I am having trouble running the tests on a Mac so I have no idea if they are passing.

maxrzaw commented 4 months ago

Oops, this is a duplicate of #572