Skip to content

Commit

Permalink
feat(icon): Add mini.icon (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft authored Jul 4, 2024
1 parent 56b6894 commit 9ac113b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/icon/mini-icon/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# mini.icon

Icon provider. Part of 'mini.nvim' library.

**Repository:** <https://github.com/echasnovski/mini.icons>
16 changes: 16 additions & 0 deletions lua/astrocommunity/icon/mini-icon/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
return {
"echasnovski/mini.icons",
opts = {},
lazy = true,
specs = {
{ "nvim-tree/nvim-web-devicons", enabled = false, optional = true },
},
init = function()
package.preload["nvim-web-devicons"] = function()
-- needed since it will be false when loading and mini will fail
package.loaded["nvim-web-devicons"] = {}
require("mini.icons").mock_nvim_web_devicons()
return package.loaded["nvim-web-devicons"]
end
end,
}

0 comments on commit 9ac113b

Please sign in to comment.