Skip to content

Commit

Permalink
fix: Add missing utils.is_disabled() check
Browse files Browse the repository at this point in the history
Add utils.is_disabled() check when hybridnumber and absolutenumber_unfocused are
both set to true.
  • Loading branch information
johnhampton authored and cryptomilk committed Jun 6, 2024
1 parent 2c2c91d commit 56d482a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/focus/modules/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ function M.setup(config)
vim.api.nvim_create_autocmd({ 'BufEnter', 'WinEnter' }, {
group = augroup,
callback = function(_)
if utils.is_disabled() then
return
end
vim.wo.number = true
vim.wo.relativenumber = true
end,
Expand Down

0 comments on commit 56d482a

Please sign in to comment.