Skip to content

Commit

Permalink
remove insert mode check
Browse files Browse the repository at this point in the history
We have used `InsertEnter` and `InsertLeave` events to manage
insert mode highlight.
  • Loading branch information
fitrh committed Oct 10, 2022
1 parent 73791bf commit 2cd194d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lua/modes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,6 @@ M.setup = function(opts)
return
end

if current_mode == 'i' then
if key == utils.replace_termcodes('<esc>') then
M.reset()
return
end
end

if current_mode == 'n' then
-- reset if coming back from operator pending mode
if operator_started then
Expand Down

0 comments on commit 2cd194d

Please sign in to comment.