Skip to content

Commit

Permalink
fix: add augroup (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: tris203 <admin@snappeh.com>
Co-authored-by: Will Hopkins <willothyh@gmail.com>
  • Loading branch information
3 people committed Dec 23, 2023
1 parent 4fc673f commit 1451dcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/hawtkeys/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ local defaultConfig = {
lhsBlacklist = { "<plug>", "Þ" },
}

local auGroup = vim.api.nvim_create_augroup("hawtkeys", { clear = true })

local function apply_highlights()
for name, props in pairs(M.config.highlights) do
local styleConfig
Expand Down Expand Up @@ -115,6 +117,7 @@ function M.setup(config)

vim.api.nvim_create_autocmd("ColorScheme", {
callback = apply_highlights,
group = auGroup,
})

vim.api.nvim_create_user_command(
Expand Down

0 comments on commit 1451dcd

Please sign in to comment.