Skip to content

Commit

Permalink
Another augroup inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Aug 2, 2024
1 parent 39f263d commit badd74c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/lean/widgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,8 @@ function BufRenderer:new(obj)
vim.bo[obj.buf].modifiable = false
_by_buf[obj.buf] = new_renderer

local augroup = vim.api.nvim_create_augroup('WidgetPosition', { clear = false })
vim.api.nvim_create_autocmd({ 'BufEnter', 'CursorMoved' }, {
group = augroup,
group = vim.api.nvim_create_augroup('WidgetPosition', { clear = false }),
buffer = obj.buf,
callback = function()
new_renderer:update_cursor()
Expand Down

0 comments on commit badd74c

Please sign in to comment.