Skip to content

Commit

Permalink
fix(config): proper checking for the keybinds configuration table cor…
Browse files Browse the repository at this point in the history
…rectness, see #306
  • Loading branch information
NTBBloodbath committed Mar 18, 2024
1 parent ce8f64d commit 0277464
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/rest-nvim/config/check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ function check.get_unrecognized_keys(tbl, default_tbl)
if type(default_tbl[k]) == "table" and tbl[k] then
for _, subk in pairs(check.get_unrecognized_keys(tbl[k], default_tbl[k])) do
local key = k .. "." .. subk
ret[key] = key
-- Keybinds configuration table requires a special treatment as it does not have a "static" syntax
if k ~= "keybinds" or k == "keybinds" and type(subk) ~= "number" then
ret[key] = key
end
end
end
end
Expand Down

0 comments on commit 0277464

Please sign in to comment.