Skip to content

Commit

Permalink
Merge pull request #50 from Cassin01/update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassin01 authored Mar 3, 2023
2 parents f01731c + 10c8f40 commit cb7e7e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ if _G.__key_prefixes == nil then
}
end


-- utility function for setting keymaps
---------------------------------------
local function nmaps(prefix, desc, tbl)
Expand Down Expand Up @@ -316,7 +317,10 @@ nmaps("<space>t", "telescope"
{"o", "<cmd>Telescope oldfiles<cr>", "old files"},
{"r", "<cmd>Telescope file_browser<cr>", "file_browser"}})

-- set keymap for calling which-key

- set keymap for calling which-key
---------------------------------------

vim.set.keymap("n", "<Space>, which_key({text_insert_in_advance="<space>",
key_group_dict=_G.__key_prefixes["n"]}),
{noremap = true, silent = tre, desc = "which-key space", nowait = true})
Expand Down

0 comments on commit cb7e7e1

Please sign in to comment.