22
33# fzf-nerdfont.nvim
44
5- A Neovim plugin that provides a handy way to search
6- and insert Nerd Font icons<br />using [ ` ibhagwan/fzf-lua ` ] ( https://github.com/ibhagwan/fzf-lua )
7- while you edit.
85<br />
96
10- ![ Example GIF] ( https://raw.githubusercontent.com/stephansama/static/refs/heads/main/nvim-plugins/fzf-nerdfont.gif )
7+ [ ![ Example GIF] ( https://raw.githubusercontent.com/stephansama/static/refs/heads/main/nvim-plugins/fzf-nerdfont.gif )] ( # )
8+
9+ A Neovim plugin that provides a handy way to search
10+ and insert Nerd Font icons<br />using [ ` ibhagwan/fzf-lua ` ] ( https://github.com/ibhagwan/fzf-lua ) while editing.
1111
1212</div >
1313
14- ## ☄ Getting started
14+ ---
15+
16+ ## ☄ Getting Started
1517
1618This plugin provides a command ` FzfNerdFont ` that opens a ` fzf-lua ` window
1719with a list of Nerd Font icons.
18- You can search for an icon and press enter to insert it into the current buffer.
20+ You can search for an icon and press ` Enter ` to insert it into the current buffer.
1921
20- ### Prerequisites
22+ ### Requirements
2123
24+ - [ ` Neovim ` ] ( https://github.com/neovim/neovim ) ** (` v0.11 ` or later)**
2225- [ ` fzf ` ] ( https://github.com/junegunn/fzf )
23- - [ ` jq ` ] ( https://github.com/jqlang/jq )
24- - [ ` make ` ] ( https://www.gnu.org/software/make/ )
25- - [ ` neovim >0.11 ` ] ( https://github.com/neovim/neovim )
26+ - [ ` jq ` ] ( https://github.com/jqlang/jq ) ** (for regenerating glyphs)**
27+ - [ ` GNU make ` ] ( https://www.gnu.org/software/make/ )
2628
2729### 📋 Installation
2830
@@ -39,43 +41,52 @@ require("lazy").setup({
3941 cmd = " FzfNerdfont" ,
4042 keys = {
4143 { " <leader>fi" , " <CMD>FzfNerdfont<CR>" , desc = " Open fzf nerd font picker" }
42- }
44+ },
45+ --- @module ' fzf-nerdfont'
46+ --- @type FzfNerdFontOpts
47+ opts = {}
4348 }
4449 }
4550})
4651```
4752
53+ ---
54+
4855## ⚙ Configuration
4956
5057> [ !NOTE]
51- > The options are also available in Neovim by calling ` :h fzf-nerdfont.options `
58+ > The options are also available in Neovim by running ` :h fzf-nerdfont.options ` .
5259
5360<details >
54- <summary >Click to unfold the full list of options with their default values</summary >
61+ <summary >< b > Click to unfold the full list of options with their default values</ b > </summary >
5562
5663``` lua
57- require (" fzf-nerdfont" ).setup ({
58- -- you can copy the full list from lua/fzf-nerdfont/config.lua
59- })
64+ --- @type FzfNerdFontOpts
65+ {
66+ debug = false , -- Debugging
67+ glyphs_dir = vim .fn .stdpath (" data" ) .. " /fzf-nerdfont" , -- The directory in which glyphs will be saved
68+ prompt = " Select Icon>" , -- The fzf-lua prompt
69+ }
6070```
6171
6272</details >
6373
74+ ---
75+
6476## 🧰 Commands
6577
66- | Command | Description |
67- | -------------| ----------------------------|
68- | ` :FzfNerdfont ` | Shows the Nerd Font icon list with fzf-lua. |
69- | ` :FzfNerdfont generate ` | Generates the Nerd Font icon list. |
70- | ` :FzfNerdfont delete ` | Deletes the generated Nerd Font icon list. |
71- | ` :FzfNerdfont run ` | Shows the Nerd Font icon list with fzf-lua (same as no arguments). |
78+ | Command | Description |
79+ | --------------------------- | -------------------------------------------- ----------------------------|
80+ | ` :FzfNerdfont ` | Shows the Nerd Font icon list with ` fzf-lua ` . |
81+ | ` :FzfNerdfont generate ` | Generates the Nerd Font icon list. |
82+ | ` :FzfNerdfont delete ` | Deletes the generated Nerd Font icon list. |
83+ | ` :FzfNerdfont run ` | Shows the Nerd Font icon list with ` fzf-lua ` (same as no arguments). |
7284
7385---
7486
7587## FAQ
7688
77- 1 . _ ** How to use this plugin from within insert mode?** _
78-
89+ - _ ** How do I use this plugin from within insert mode?** _
7990 ``` lua
8091 local function insert_fzf_nerdfont ()
8192 vim .cmd .stopinsert ()
@@ -88,12 +99,16 @@ require("fzf-nerdfont").setup({
8899 })
89100 ```
90101
102+ ---
103+
91104## ⌨ Contributing
92105
93- PRs and issues are always welcome. Make sure to provide as much context as possible when opening one.
106+ PRs and issues are always welcome.
107+ Make sure to provide as much context as possible when opening one.
94108
95109## Special Thanks
96110
97- A very special thanks to [ DrKJeff16] ( https://github.com/DrKJeff16/ ) for helping me with the initial setup of this plugin.
111+ A very special thanks to [ DrKJeff16] ( https://github.com/DrKJeff16 ) for helping me
112+ with the initial setup of this plugin.
98113
99114And a special thank you to [ fzf-lua] ( https://github.com/ibhagwan/fzf-lua ) .
0 commit comments