From 2cd194d1033ba391d87d386735e15963adbc5f51 Mon Sep 17 00:00:00 2001 From: Fitrah Muhammad Date: Mon, 10 Oct 2022 14:20:56 +0800 Subject: [PATCH] remove insert mode check We have used `InsertEnter` and `InsertLeave` events to manage insert mode highlight. --- lua/modes.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/modes.lua b/lua/modes.lua index efc25bc..a00dd62 100644 --- a/lua/modes.lua +++ b/lua/modes.lua @@ -198,13 +198,6 @@ M.setup = function(opts) return end - if current_mode == 'i' then - if key == utils.replace_termcodes('') then - M.reset() - return - end - end - if current_mode == 'n' then -- reset if coming back from operator pending mode if operator_started then