Skip to content

Commit

Permalink
Add TermLeave (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: gen740 <[email protected]>
  • Loading branch information
gen740 and gen740 authored Jan 23, 2024
1 parent cf87341 commit a0373d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/smoothcursor/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sc.smoothcursor_start = function(init_fire)

vim.api.nvim_create_augroup('SmoothCursor', { clear = true })

vim.api.nvim_create_autocmd({ 'BufEnter', 'WinEnter' }, {
vim.api.nvim_create_autocmd({ 'BufEnter', 'WinEnter', 'TermLeave' }, {
group = 'SmoothCursor',
callback = function()
callback.switch_buf()
Expand Down

0 comments on commit a0373d7

Please sign in to comment.