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

Hyper theme will crash if the user has no oldfiles history

Open opzap opened this issue 1 year ago • 0 comments

https://github.com/nvimdev/dashboard-nvim/blob/fabf5feec96185817c732d47d363f34034212685/lua/dashboard/theme/hyper.lua#L179

mru_list takes the result of utils.get_mru_list() to figure out which OS separator it should use, but this function will always return {} on a fresh install of Neovim.

Lua already provides a safe way to get the directory separator for all systems using package.config:

local sep = package.config:sub(1, 1)

opzap avatar Aug 17 '24 09:08 opzap