Skip to content

Commit

Permalink
refactor(nvim): remove insert mode events from auto cursorline
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Jan 19, 2025
1 parent 0ed5ca1 commit 6351b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .config/nvim/plugin/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ vim.api.nvim_create_autocmd('VimResized', {
end,
})

vim.api.nvim_create_autocmd({ 'InsertLeave', 'WinEnter' }, {
vim.api.nvim_create_autocmd('WinEnter', {
desc = 'Show cursor line only in active window.',
group = vim.api.nvim_create_augroup(
'AutoCursorlineShowCursorline',
Expand All @@ -112,7 +112,7 @@ vim.api.nvim_create_autocmd({ 'InsertLeave', 'WinEnter' }, {
end
end,
})
vim.api.nvim_create_autocmd({ 'InsertEnter', 'WinLeave' }, {
vim.api.nvim_create_autocmd('WinLeave', {
desc = 'Show cursor line only in active window.',
group = vim.api.nvim_create_augroup(
'AutoCursorlineHideCursorline',
Expand Down

0 comments on commit 6351b03

Please sign in to comment.