diff --git a/lua/ow/core/mappings.lua b/lua/ow/core/mappings.lua index d72582b..f311aad 100644 --- a/lua/ow/core/mappings.lua +++ b/lua/ow/core/mappings.lua @@ -19,6 +19,15 @@ vim.keymap.set({ "n", "x", }, "+", ":call setreg('+', @\")") -- Allow exiting insert mode in terminal by hitting vim.keymap.set("t", "", "") +-- Feed ESC in terminal mode using +vim.keymap.set("t", "", function() + vim.api.nvim_feedkeys( + vim.api.nvim_replace_termcodes("", true, false, true), + "n", + false + ) +end) + -- Use :diffput/get instead of normal one to allow staging visual selection vim.keymap.set({"n", "x"}, "dp", ":diffput") vim.keymap.set({"n", "x"}, "do", ":diffget")