update nvim config and squash some bugs

This commit is contained in:
2025-08-07 21:50:36 -07:00
parent 074c895e53
commit 9aac0e4dc0
7 changed files with 22 additions and 6 deletions

View File

@@ -19,8 +19,9 @@ function M.addToWhichKey(mappings, group)
elseif not mappings and group then
return
end
local wk_mappings = {}
for _, mapping in ipairs(mappings) do
local wk_mappings = {}
wk_mappings = {}
if not mapping.key or mapping.key == "" then
vim.notify("Error: Key is empty or nil", "error")
return