diff --git a/common/nvim/init.lua b/common/nvim/init.lua index 5d06515..2936bfa 100644 --- a/common/nvim/init.lua +++ b/common/nvim/init.lua @@ -211,18 +211,14 @@ require("lazy").setup({ { -- Useful plugin to show you pending keybinds. "folke/which-key.nvim", event = "VeryLazy", -- Sets the loading event to 'VeryLazy' - config = function() -- This is the function that runs, AFTER loading - require("which-key").setup() - - -- Document existing key chains - require("which-key").register({ - ["c"] = { name = "[C]ode", _ = "which_key_ignore" }, - ["d"] = { name = "[D]ocument", _ = "which_key_ignore" }, - ["r"] = { name = "[R]ename", _ = "which_key_ignore" }, - ["s"] = { name = "[S]earch", _ = "which_key_ignore" }, - ["w"] = { name = "[W]orkspace", _ = "which_key_ignore" }, - }) - end, + opts = {}, + keys = { + { "c", name = "[C]ode" }, + { "d", name = "[D]ocument" }, + { "r", name = "[R]ename" }, + { "s", name = "[S]earch" }, + { "w", name = "[W]orkspace" }, + }, }, -- NOTE: Plugins can specify dependencies.