👁️🗨️ Which-key Update

- Implement the new which-key spec
- Particularly: ICONS!
This commit is contained in:
2024-07-12 18:55:02 -04:00
parent 3528cfa1cb
commit 83b3ce29f5
6 changed files with 62 additions and 86 deletions
+2 -4
View File
@@ -6,11 +6,9 @@ return {
"ziontee113/icon-picker.nvim",
config = function()
require("icon-picker").setup({ disable_legacy_commands = true })
local opts = { noremap = true, silent = true }
vim.keymap.set("n", "<Leader><Leader>i", "<cmd>IconPickerNormal<cr>", opts)
vim.keymap.set("n", "<Leader><Leader>y", "<cmd>IconPickerYank<cr>", opts) --> Yank the selected icon into register
vim.keymap.set("n", "<Leader>Ii", "<cmd>Pick Icon<cr>", opts)
vim.keymap.set("n", "<Leader>Iy", "<cmd>Yank Icon<cr>", opts)
vim.keymap.set("i", "<C-i>", "<cmd>IconPickerInsert<cr>", opts)
end,
}