Skip to content

Commit

Permalink
better-escape: add mappings config after recent upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jul 11, 2024
1 parent 632980d commit 5b0dd17
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nxvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ local modules = {
-- { "epwalsh/obsidian.nvim", config = "plugins.obsidian" },

-- Utility -------------------------------------------------------------------
{ "max397574/better-escape.nvim", event = "InsertEnter", config = true },
{ "max397574/better-escape.nvim", event = "InsertEnter", config = "plugins.better-escape" }, -- remove delay from escape keys while typing in insert mode
{ "nat-418/boole.nvim", event = "VeryLazy", config = "plugins.boole" }, -- extend increment / decrement to cycle through related words
{ "famiu/bufdelete.nvim", lazy = true },
{ "stevearc/dressing.nvim", event = "VeryLazy", config = "plugins.dressing" },
Expand Down
35 changes: 35 additions & 0 deletions lua/nxvim/plugins/better-escape.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
-- https://github.com/max397574/better-escape.nvim

-- { == Configuration ==> ====================================================

require("better_escape").setup({
default_mappings = false,
mappings = {
i = {
j = {
k = "<Esc>",
},
},
c = {
j = {
k = "<Esc>",
},
},
t = {
j = {
k = "<Esc>",
},
},
v = {
j = {
k = "<Esc>",
},
},
s = {
j = {
k = "<Esc>",
},
},
},
})
-- <== }

0 comments on commit 5b0dd17

Please sign in to comment.