Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion lua/dashboard/theme/hyper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ local function letter_hotkey(config)
end
end

local confirm_keys = type(config.confirm_key) == 'table' and config.confirm_key
or { config.confirm_key }
for _, key in ipairs(confirm_keys) do
table.insert(used_keys, key:byte())
end

math.randomseed(os.time())

-- Create key table, fill it with unused characters.
Expand Down Expand Up @@ -538,7 +544,11 @@ local function theme_instance(config)
load_packages(config)
gen_center(plist, config)
gen_footer(config)
map_key(config, config.confirm_key or '<CR>')
local confirm_keys = type(config.confirm_key) == 'table' and config.confirm_key
or { config.confirm_key or '<CR>' }
for _, key in ipairs(confirm_keys) do
map_key(config, key)
end
require('dashboard.events').register_lsp_root(config.path)
local size = math.floor(vim.o.lines / 2)
- math.ceil(api.nvim_buf_line_count(config.bufnr) / 2)
Expand Down