From b14c90fb7299d1143167ab9af8241af61568d2f0 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 13 Mar 2025 22:04:46 +0000 Subject: [PATCH] nvim/snacks: replace n with i in dashboard I want it to behave similar to original vim whire the "dashboard" is closed when I inter insert mode. --- nvim/lua/plugins/snacks.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 89eec46..4b34734 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -49,7 +49,7 @@ return { ---@type snacks.dashboard.Item[] keys = { { icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" }, - { icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" }, + { icon = " ", key = "i", desc = "New File", action = ":ene | startinsert" }, { icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" }, { icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" }, { icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" }, -- 2.48.1