1
0
Fork 0
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.
Find a file
Coko bb412f8c93 refactor(terminal): add backward compatibility for termopen deprecation
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.
2026-07-06 09:17:21 +02:00
lua/latuicon refactor(terminal): add backward compatibility for termopen deprecation 2026-07-06 09:17:21 +02:00
plugin feat: add latuicon icon picker plugin 2026-07-05 18:42:57 +02:00
LICENSE Initial commit 2026-07-05 18:34:51 +02:00
README.md docs: add readme with installation and usage guide 2026-07-06 08:35:53 +02:00

😴 latuicon.nvim

Neovim plugin wrapping latuicon — pick an emoji, kaomoji, Unicode char, or Nerd Font glyph and insert it at the cursor.

latuicon-demo

Requirements

  • Neovim >= 0.8
  • latuicon binary 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

  • :Latuicon opens 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
})