mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 15:19:09 +01:00
added icon picker plugin
This commit is contained in:
1 parent
4a36fda21f
commit
d0f9525a70
1 file changed
+36
@@ -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
|
||||||
|
}
|
||||||
Reference in new issue
Block a user