extend-snacks.lua (450B)
1 return { 2 "snacks.nvim", 3 opts = function(_, opts) 4 -- Make the "New File" option in the dashboard start in normal mode 5 opts.dashboard.preset.keys[2] = { 6 icon = " ", 7 key = "n", 8 desc = "New File (Normal Mode)", 9 action = ":ene", 10 } 11 table.insert(opts.dashboard.preset.keys, 3, { 12 icon = " ", 13 key = "i", 14 desc = "New File (Insert Mode)", 15 action = ":ene | startinsert", 16 }) 17 end, 18 }