Merge pull request #365 from trimclain/link-default-highlights

feat: link harpoon highlights to default groups
This commit is contained in:
ThePrimeagen 2023-12-04 10:49:44 -07:00 committed by GitHub
commit 0a4c318493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,15 @@ function Harpoon:setup(partial_config)
self.config = Config.merge_config(partial_config, self.config)
self.ui:configure(self.config.settings)
local highlights = {
HarpoonWindow = { default = true, link = "NormalFloat" },
HarpoonBorder = { default = true, link = "FloatBorder" },
HarpoonTitle = { default = true, link = "FloatTitle" },
}
for k, v in pairs(highlights) do
vim.api.nvim_set_hl(0, k, v)
end
---TODO: should we go through every seen list and update its config?
if self.hooks_setup == false then