nvimdev / dashboard-nvim

vim dashboard
MIT License
2.19k stars 177 forks source link

fix: error opening recent projects #418

Closed tkhg closed 5 months ago

tkhg commented 5 months ago

this should fix https://github.com/nvimdev/dashboard-nvim/issues/417 checking only

if config.mru.cwd_only then

would cause error on selecting recent project by entering the wrong path

also enhance the scenario when user presses enter on empty space

mathjiajia commented 5 months ago

for files in .config/xxx it will open config/xxx, noting the missing dot.

glepnir commented 5 months ago

can use vim.fs.basename to get full path of give fname