commit 99589a3a0d717f3ee74e01f4923c73ab357bb510
parent 078df33dd4381746cfed68c2cba8f5a4e10bf18c
Author: Eamon Caddigan <ec@eamoncaddigan.net>
Date: Fri, 18 Apr 2025 16:01:39 -0700
Add a shortcut to start in insert mode back to dashboard
As a long-time vim user, I'm used to opening my editor and tapping 'i'
to get into insert mode, and these tweaks to the snacks dashboard
reinstate that behavior.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/lua/plugins/extend-snacks.lua b/lua/plugins/extend-snacks.lua
@@ -8,5 +8,11 @@ return {
desc = "New File (Normal Mode)",
action = ":ene",
}
+ table.insert(opts.dashboard.preset.keys, 3, {
+ icon = " ",
+ key = "i",
+ desc = "New File (Insert Mode)",
+ action = ":ene | startinsert",
+ })
end,
}