added icon picker plugin

This commit is contained in:
aminnairi
2023-12-04 19:09:07 +01:00
parent 4a36fda21f
commit d0f9525a70
@@ -0,0 +1,36 @@
return {
"ziontee113/icon-picker.nvim",
event = "VeryLazy",
config = function()
local iconPicker = require("icon-picker")
local whichKey = require("which-key")
iconPicker.setup({
disable_legacy_commands = true
})
whichKey.register({
["<leader>i"] = {
name = "Icon Picker",
e = {
function()
vim.cmd("IconPickerInsert emoji")
end,
"Pick emoji"
},
s = {
function()
vim.cmd("IconPickerInsert symbols")
end,
"Pick symbol"
},
n = {
function()
vim.cmd("IconPickerInsert nerd_font")
end,
"Pick Nerd font symbol"
}
}
})
end
}