diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 0a126e1..7f453df 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -88,10 +88,8 @@ pcode.dap_ensure_installed = { -- https://github.com/folke/which-key.nvim pcode.whichkey = { -- contoh penambahan - ["r"] = { - name = "  Run", - j = { "Jaq float", "Run With Jaq" }, - }, + { "r", "", desc = "  Run", mode = "n" }, + { "rx", "Jaq float", desc = "Run With Jaq", mode = "n" }, } -- https://github.com/CRAG666/code_runner.nvim diff --git a/lua/plugins/whichkey.lua b/lua/plugins/whichkey.lua index edd193a..1c45b8b 100644 --- a/lua/plugins/whichkey.lua +++ b/lua/plugins/whichkey.lua @@ -133,5 +133,6 @@ return { { "zl", "Lazy log", desc = "Log", mode = "n" }, { "zd", "Lazy debug", desc = "Debug", mode = "n" }, }) + which_key.add(pcode.whichkey or {}) end, }