Finding Nerd Fonts in Neovim

  • 10th Mar 2026
  • 2 min read

I have been writing quite a few presentations in presenterm and was repeatedly going over to the nerd font website to search for the icon that I wanted to pick copying it, then pasting it in neovim. Surely... there is a better way.

Searching through web-based cheat sheets annoyed me so much that I decided to bring the search directly into Neovim using fzf-lua. There was an existing nerdy.nvim that looks like it does the same thing. (thanks for the python utility script to get the icon names), but it used telescope or snacks.nvim for the picker and I use fzf.lua.

The benefit is pretty simple:

  • hit a keymap
  • fuzzy-search for an icon by name
  • and drop that bad boy straight into the buffer.

To power this, I added a new utility module in my neovim config, which acts as a comprehensive dictionary of Nerd Font icons (VS Code codicons, Devicons, Font Awesome, etc.). By piping this into fzf-lua, I get a lightning-fast, searchable interface for thousands of symbols.

I hooked a new picker into my fzf.lua config under <leader>fn (Find Nerd-font).

{
    "<leader>fn",
    function()
        local nerd_icons = require("utils.nerd_icons")
        local items = {}
        for _, item in ipairs(nerd_icons.list()) do
            table.insert(items, string.format("%s  %s", item.char, item.name))
        end
        require("fzf-lua").fzf_exec(items, {
            prompt = "Icons> ",
            multiselect = true,
            winopts = {
                height = 0.33,
                width = 0.33,
            },
            actions = {
                ["default"] = function(selected)
                    local icons = {}
                    for _, line in ipairs(selected) do
                        local icon = vim.fn.split(line, "  ")[1]
                        table.insert(icons, icon)
                    end
                    vim.api.nvim_put({ table.concat(icons, "") }, "c", true, true)
                end,
            },
        })
    end,
    desc = "Find Nerd Font Icon",
},

and bada-bing, bada-boom...