Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2KAbhishek/nerdy.nvim
Find Nerd Glyphs Easily 🤓🔭
https://github.com/2KAbhishek/nerdy.nvim
glyph neovim nerdfont plugin telescope utility
Last synced: about 1 month ago
JSON representation
Find Nerd Glyphs Easily 🤓🔭
- Host: GitHub
- URL: https://github.com/2KAbhishek/nerdy.nvim
- Owner: 2KAbhishek
- License: gpl-3.0
- Created: 2023-09-23T04:40:52.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T09:26:26.000Z (3 months ago)
- Last Synced: 2024-04-11T14:14:49.464Z (about 1 month ago)
- Topics: glyph, neovim, nerdfont, plugin, telescope, utility
- Language: Lua
- Homepage:
- Size: 606 KB
- Stars: 92
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-neovim - 2KAbhishek/nerdy.nvim - Find and insert the latest nerd font glyphs. (Icon / Cursorline)
- awesome-stars - 2KAbhishek/nerdy.nvim - Find Nerd Glyphs Easily 🤓🔭 (Lua)
README
Do you like [Nerd fonts](https://github.com/ryanoasis/nerd-fonts)? but don't like going over to [their site](https://www.nerdfonts.com/cheat-sheet) 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
- 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.
- [dressing.nvim](https://github.com/stevearc/dressing.nvim) — for prettier select UI
- [telescope](https://github.com/nvim-telescope/telescope.nvim) — for fuzzy searching in list### 🚀 Installation
```lua
-- 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 `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.
```lua
require('telescope').load_extension('nerdy')
```And then call
```viml
: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](https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/glyphnames.json) 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](https://github.com/2kabhishek/dots2k) — Dev Environment
- [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor### 🔍 More Info
- [nerdicons.nvim](https://github.com/nvimdev/nerdicons.nvim) — thanks to the original authors for the groundwork.
- [co-author.nvim](https://github.com/2kabhishek/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
| More Links
| Other Projects