mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 12:50:37 +00:00
fix: handle bug when which-key is not installed
This commit is contained in:
parent
3fc888c147
commit
ec62a5cee8
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ nvchad.no_WhichKey_map = function()
|
|||
if not vim.tbl_contains(ignore_modes, mode) then
|
||||
for keybind, cmd in pairs(keymap) do
|
||||
-- disabled keys will not have cmd set
|
||||
if cmd ~= "" then
|
||||
if cmd ~= "" and cmd[1] then
|
||||
nvchad.map(mode, keybind, cmd[1])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue