From: Samir Benmendil Date: Thu, 13 Mar 2025 22:04:46 +0000 (+0000) Subject: nvim/snacks: replace n with i in dashboard X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b14c90fb7299d1143167ab9af8241af61568d2f0?hp=55b39c6121082b3c8ecf1bab5085d11dfa299dd6 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. --- 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')})" },