Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: README.md, #50

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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