Skip to content

Commit 43af2b6

Browse files
committed
fix: migrate from lspkind and web-devicons to mini.icons
1 parent 90fe80b commit 43af2b6

File tree

2 files changed

+42
-20
lines changed

2 files changed

+42
-20
lines changed

src/content/docs/recipes/icons.mdx

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -212,23 +212,46 @@ return {
212212
},
213213
},
214214
{
215-
"onsails/lspkind.nvim",
216-
opts = function(_, opts)
217-
-- use codicons preset
218-
opts.preset = "codicons"
219-
-- set some missing symbol types
220-
opts.symbol_map = {
221-
Array = "",
222-
Boolean = "",
223-
Key = "",
224-
Namespace = "",
225-
Null = "",
226-
Number = "",
227-
Object = "",
228-
Package = "",
229-
String = "",
230-
}
231-
end,
215+
"echasnovski/mini.icons",
216+
optional = true,
217+
opts = {
218+
lsp = {
219+
array = { glyph = "" },
220+
boolean = { glyph = "" },
221+
key = { glyph = "" },
222+
namespace = { glyph = "" },
223+
null = { glyph = "" },
224+
number = { glyph = "" },
225+
object = { glyph = "" },
226+
package = { glyph = "" },
227+
string = { glyph = "" },
228+
class = { glyph = "" },
229+
color = { glyph = "" },
230+
constant = { glyph = "" },
231+
constructor = { glyph = "" },
232+
enum = { glyph = "" },
233+
enummember = { glyph = "" },
234+
event = { glyph = "" },
235+
field = { glyph = "" },
236+
file = { glyph = "" },
237+
folder = { glyph = "" },
238+
["function"] = { glyph = "" },
239+
interface = { glyph = "" },
240+
keyword = { glyph = "" },
241+
method = { glyph = "" },
242+
module = { glyph = "" },
243+
operator = { glyph = "" },
244+
property = { glyph = "" },
245+
reference = { glyph = "" },
246+
snippet = { glyph = "" },
247+
struct = { glyph = "" },
248+
text = { glyph = "" },
249+
typeparameter = { glyph = "" },
250+
unit = { glyph = "" },
251+
value = { glyph = "" },
252+
variable = { glyph = "" },
253+
},
254+
},
232255
},
233256
}
234257
```

src/content/docs/reference/default_plugins.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ title: Default Plugins
1616
| [NvChad/nvim-colorizer.lua](https://github.com/NvChad/nvim-colorizer.lua) | Highlight Color Strings |
1717
| [akinsho/toggleterm.nvim](https://github.com/akinsho/toggleterm.nvim) | Terminal Management |
1818
| [echasnovski/mini.bufremove](https://github.com/echasnovski/mini.bufremove) | Buffer Removal |
19+
| [echasnovski/mini.icons](https://github.com/echasnovski/mini.icons) | Icon Provider |
1920
| [folke/lazy.nvim](https://github.com/folke/lazy.nvim) | Plugin Management |
2021
| [folke/neoconf.nvim](https://github.com/folke/neoconf.nvim) | Global and Project-local settings |
2122
| [folke/neodev.nvim](https://github.com/folke/neodev.nvim) | Neovim Lua LSP Integration |
@@ -40,11 +41,9 @@ title: Default Plugins
4041
| [nvim-neo-tree/neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) | File Explorer |
4142
| [nvim-telescope/telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim) | Fast Telescope Sorter |
4243
| [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) | General Finder/Picker |
43-
| [nvim-tree/nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons) | Filetype Icons |
4444
| [nvim-treesitter/nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects) | Treesitter Vim Text Objects |
4545
| [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | Syntax Tree Based Highlighting |
4646
| [nvimtools/none-ls.nvim](https://github.com/nvimtools/none-ls.nvim) | Formatter and Linter LSP Integration |
47-
| [onsails/lspkind.nvim](https://github.com/onsails/lspkind.nvim) | LSP Symbol Icons |
4847
| [rafamadriz/friendly-snippets](https://github.com/rafamadriz/friendly-snippets) | General Purpose Snippet Collection |
4948
| [rcarriga/cmp-dap](https://github.com/rcarriga/cmp-dap) | Completion in DAP REPL |
5049
| [rcarriga/nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui) | DAP User Interface |
@@ -58,4 +57,4 @@ title: Default Plugins
5857
| [williamboman/mason-lspconfig.nvim](https://github.com/williamboman/mason-lspconfig.nvim) | Mason LSP Integration |
5958
| [williamboman/mason.nvim](https://github.com/williamboman/mason.nvim) | External Package Manager |
6059
| [windwp/nvim-autopairs](https://github.com/windwp/nvim-autopairs) | Automatically Close Pairs |
61-
| [windwp/nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag) | Automatically Close/Rename Tags |
60+
| [windwp/nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag) | Automatically Close/Rename Tags |

0 commit comments

Comments
 (0)