nix-config/modules/home/vim/plugin/settings/which-key.lua
Bruno BELANYI 9ed2dcefde
Some checks failed
ci/woodpecker/push/check Pipeline failed
home: vim: which-key: use lua callbacks
2024-07-26 11:54:11 +00:00

34 lines
726 B
Lua

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> ",
},
},
})
local keys = {
{ "<leader><leader>", vim.cmd.nohlsearch, desc = "Clear search highlight" },
}
wk.add(keys)