Skip to content

Commit

Permalink
Merge pull request #365 from trimclain/link-default-highlights
Browse files Browse the repository at this point in the history
feat: link harpoon highlights to default groups
  • Loading branch information
ThePrimeagen authored Dec 4, 2023
2 parents 581da79 + 84e2eb7 commit 0a4c318
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/harpoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4c318

Please sign in to comment.