nviiim/after/plugin/whichkey.lua
Robert Morrison d032e3e274
chore(repo): First contentful commit
This is the first commit that actually adds files to the repo.
Yes it's a bad commit but now the major features are here
2023-03-03 17:11:36 +00:00

54 lines
951 B
Lua

-- Which-key is configured here. But bindings are located with the plugin that they are for
local ok, whichKey = pcall(require,'which-key')
if not ok then
return
end
-- Because which-key uses the timeoutlen to decide when to show it it set to 0 here
-- This makes it appear instantly
vim.o.timeout = true
vim.o.timeoutlen = 0
whichKey.setup({
plugins = {
marks = true,
registers = true,
spelling = {
enabled = true,
suggestions = 10,
},
presets = {
operators = true,
motions = true,
text_objects = true,
windows = true,
nav = true,
z = true,
g = true,
},
},
icons = {
breadcrumb = "󰇘",
separator = "󰇼",
group = "󰋃",
},
window = {
border = "single",
position = "bottom",
},
-- ignore_missing = true,
disable = {
filetypes = {"TelescopePrompt"}
}
})
-- TODO: Set some keymap documentation if some old-style plugins are loaded.
-- NERD commenter - Name the group
-- Vimwiki - Name the group