diff --git a/README.md b/README.md index 52067a7..bfe6547 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,7 @@ if _G.__key_prefixes == nil then } end + -- utility function for setting keymaps --------------------------------------- local function nmaps(prefix, desc, tbl) @@ -316,7 +317,10 @@ nmaps("t", "telescope" {"o", "Telescope oldfiles", "old files"}, {"r", "Telescope file_browser", "file_browser"}}) --- set keymap for calling which-key + +- set keymap for calling which-key +--------------------------------------- + vim.set.keymap("n", ", which_key({text_insert_in_advance="", key_group_dict=_G.__key_prefixes["n"]}), {noremap = true, silent = tre, desc = "which-key space", nowait = true})