nix-config/modules/home/vim/plugin/settings/which-key.lua

34 lines
726 B
Lua
Raw Normal View History

2022-02-26 13:51:34 +01:00
local wk = require("which-key")
wk.setup({
icons = {
-- I don't like icons
mappings = false,
breadcrumb = "»",
separator = "",
group = "+",
ellipsis = "",
keys = {
Up = "",
Down = "",
Left = "",
Right = "",
C = "<C>",
M = "<M>",
D = "<D>",
S = "<S>",
CR = "<CR>",
Esc = "<Esc> ",
NL = "<NL>",
BS = "<BS>",
Space = "<space>",
Tab = "<Tab> ",
},
},
})
2024-07-26 13:52:17 +02:00
local keys = {
{ "<leader><leader>", vim.cmd.nohlsearch, desc = "Clear search highlight" },
2024-07-26 13:52:17 +02:00
}
wk.add(keys)