Skip to content

Commit

Permalink
chore: simplify autocmd for command line events
Browse files Browse the repository at this point in the history
  • Loading branch information
sphamba committed Jan 7, 2025
1 parent ddc546b commit 005b50b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/smear_cursor/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ M.listen = function()
augroup SmearCursor
autocmd!
autocmd CursorMoved,CursorMovedI * lua require("smear_cursor.color").update_color_at_cursor()
autocmd CmdlineLeave,CmdwinEnter,CursorMoved,WinScrolled * lua require("smear_cursor.events").move_cursor()
autocmd CursorMoved,ModeChanged,WinScrolled * lua require("smear_cursor.events").move_cursor()
autocmd CursorMovedI * lua require("smear_cursor.events").jump_cursor()
autocmd CmdlineEnter,CmdlineChanged,CmdwinLeave * lua require("smear_cursor.events").move_cursor()
autocmd ColorScheme * lua require("smear_cursor.color").clear_cache()
augroup END
]],
Expand Down

0 comments on commit 005b50b

Please sign in to comment.