Skip to content

Commit

Permalink
feat: smear_between_buffer also control switch between windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sphamba committed Nov 29, 2024
1 parent 8a72a9a commit ce7cf75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ return {
-- Background color. Defaults to Normal GUI background color if not set.
normal_bg = "#282828",

-- Smear cursor when switching buffers.
-- Smear cursor when switching buffers or windows.
smear_between_buffers = true,

-- Smear cursor when moving within line or to neighbor lines.
Expand Down
2 changes: 1 addition & 1 deletion lua/smear_cursor/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local M = {}

-- General configuration -------------------------------------------------------

-- Smear cursor when switching buffers
-- Smear cursor when switching buffers or windows
M.smear_between_buffers = true

-- Smear cursor when moving within line or to neighbor lines
Expand Down
2 changes: 1 addition & 1 deletion lua/smear_cursor/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ M.listen = function()
autocmd CursorMoved,CursorMovedI * lua require("smear_cursor.color").update_color_at_cursor()
autocmd CursorMoved * lua require("smear_cursor.events").move_cursor()
autocmd CursorMovedI,WinScrolled * lua require("smear_cursor.events").jump_cursor()
autocmd BufLeave * lua require("smear_cursor.events").flag_switching_buffer()
autocmd BufLeave,WinLeave * lua require("smear_cursor.events").flag_switching_buffer()
autocmd ColorScheme * lua require("smear_cursor.color").clear_cache()
augroup END
]],
Expand Down

0 comments on commit ce7cf75

Please sign in to comment.