mirror of
https://github.com/coko7/latuicon.nvim.git
synced 2026-07-20 13:05:00 +00:00
😴 Neovim plugin for picking icons via latuicon TUI, inserted at cursor position.
emoji
emoji-picker
icon-picker
kaomoji
latuicon
lua
neovim
neovim-plugin
nerd-fonts
nvim
nvim-plugin
tui
unicode
- Lua 100%
nvim 0.11 deprecates termopen() in favor of jobstart({term=true}).
Extract terminal opening logic into open_terminal() helper that
uses the new approach on 0.11+ and falls back to termopen on older
versions for continued support.
|
||
|---|---|---|
| lua/latuicon | ||
| plugin | ||
| LICENSE | ||
| README.md | ||
😴 latuicon.nvim
Neovim plugin wrapping latuicon — pick an emoji, kaomoji, Unicode char, or Nerd Font glyph and insert it at the cursor.
Requirements
- Neovim >= 0.8
latuiconbinary on$PATH(install with cargo:cargo install latuicon)
Install
lazy.nvim:
{
"coko7/latuicon.nvim",
cmd = "Latuicon",
keys = {
{ "<leader>ie", function() require("latuicon").pick() end, desc = "Insert icon" },
},
opts = {},
}
packer.nvim:
use({
"coko7/latuicon.nvim",
config = function()
require("latuicon").setup()
end,
})
Usage
:Latuiconopens the picker in a floating terminal.- Pick and confirm inside latuicon as usual; the selected icon is inserted at the cursor.
- Bind
require("latuicon").pick()to a key, or pass a callback:require("latuicon").pick(function(icon) ... end).
Config
require("latuicon").setup({
cmd = "latuicon", -- binary name/path
theme = "dracula", -- optional, sets ICON_PICKER_THEME
border = "rounded",
width = 0.5, -- fraction of editor width
height = 0.6, -- fraction of editor height
})