Skip to content

Commit

Permalink
Merge pull request #398 from mrjones2014/mrj/397/fix-lazy-nvim-plugin
Browse files Browse the repository at this point in the history
fix(integrations): Fix lazy.nvim integration due to breaking change upstream
  • Loading branch information
mrjones2014 authored Oct 9, 2023
2 parents 3db15ca + 86c685a commit a2ea9a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/legendary/integrations/lazy-nvim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function M.load_lazy_nvim_keys()
-- just need the description-only item to appear
-- in the legendary.nvim finder.
local legendary_keymap = {
keymap[1], -- lhs
-- for backwards compatibility, if keymap.lhs is missing, using an old lazy.nvim so it will be keymap[1]
keymap.lhs or keymap[1],
description = keymap.desc,
mode = keymap.mode, ---@type string|string[]|nil
}
Expand Down

0 comments on commit a2ea9a4

Please sign in to comment.