Skip to content

2KAbhishek/nerdy.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License People Stars Forks Watches Last Updated

Find Nerd Glyphs Easily πŸ€“πŸ”­

nerdy.nvim in action
nerdy.nvim in action

Do you like Nerd fonts? but don't like going over to their site to fetch a glyph for your pretty terminal? Well, me too!

Introducing nerdy.nvim, a super handy plugin that lets you search, preview and insert all nerd font glyphs straight from neovim!

✨ Features

  • Fuzzy search nerd glyphs, by name and unicode
  • Preview glyphs before inserting
  • Super lightweight
  • Can auto generate new icons from source

Setup

⚑ Requirements

  • You have installed the latest version of neovim

These two plugins are optional but highly recommended for a smoother user experience.

πŸš€ Installation

-- Lazy
{
    '2kabhishek/nerdy.nvim',
    dependencies = {
        'stevearc/dressing.nvim',
        'nvim-telescope/telescope.nvim',
    },
    cmd = 'Nerdy',
},

-- Packer
use '2kabhishek/nerdy.nvim'

πŸ’» Usage

nerdy.nvim adds a new command Nerdy.

You can add your custom bindings for the command, the recommended keybinding is <leader>f,.

check :help nerdy for more details.

NOTE: By default there are no configured keybindings.

πŸ”­ Telescope Extension

Nerdy also comes with a Telescope extension, to use it add the following to your telescope configs.

require('telescope').load_extension('nerdy')

And then call

:Telescope nerdy
" or
:lua require('telescope').extensions.nerdy.nerdy()

πŸ”„ Fetch New Icons

Running the python scripts/generator.py command will automatically fetch new icons from source and update the icons.

Behind The Code

🌈 Inspiration

I love nerd font glyphs, and I use them anywhere I can! but I was wasting a lot of time going back and forth between nerd font site and neovim, also the copy feature was super buggy for me on the site, so I made nerdy!

πŸ’‘ Challenges/Learnings

  • Making the generated icon table with vim.ui.select was a bit tricky.

🧰 Tooling

  • dots2k β€” Dev Environment
  • nvim2k β€” Personalized Editor

πŸ” More Info

  • nerdicons.nvim β€” thanks to the original authors for the groundwork.
  • co-author.nvim β€” Another one of my plugin that lets you add co authors.

⭐ hit the star button if you found this useful ⭐

Source | Blog | Twitter | LinkedIn | More Links | Other Projects