dashboard-nvim icon indicating copy to clipboard operation
dashboard-nvim copied to clipboard

Add ability to easily close dashboard and enter insert mode

Open perrin4869 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When I open neovim without the dashboard and I just want to type something random, I can always just hit i and type. This is not possible with dashboard out of the box.

Describe the solution you'd like This is not currently possible because dashboard will randomly select shortcut keys for opening recent files/projects, and those may conflict with the mapping you may set.

Describe alternatives you've considered I tried the following:

cat home/.config/nvim/after/ftplugin/dashboard.lua
vim.keymap.set("n", "i", function() vim.cmd.bdelete(); vim.cmd.startinsert() end, { buffer=true,silent=true,noremap=true,desc="dashboard.exit" })

It works when i doesn't get used as a shortcut by dashboard.nvim.

perrin4869 avatar Jul 13 '23 05:07 perrin4869

I will try add this in next version. more theme will split to single repo

glepnir avatar Jul 13 '23 06:07 glepnir

I added a shortcut to open a new buffer. See my config. So just hitting 'e' in my dashboard opens an empty buffer in insert mode

Allaman avatar Jul 05 '24 19:07 Allaman