Skip to content

refactor(icons): consolidate on mini.icons, drop nvim-web-devicons - #18

Merged
hypatia-tile merged 1 commit into
mainfrom
refactor/consolidate-icons
Aug 4, 2026
Merged

refactor(icons): consolidate on mini.icons, drop nvim-web-devicons#18
hypatia-tile merged 1 commit into
mainfrom
refactor/consolidate-icons

Conversation

@hypatia-tile

Copy link
Copy Markdown
Owner

What

The config shipped two icon providers: oil used mini.icons, lualine pulled in nvim-web-devicons, and telescope implicitly used the latter. Consolidate on mini.icons.

Change

  • New lua/plugins/mini-icons.lua owns the provider: setup() + MiniIcons.mock_nvim_web_devicons(), plus a package.preload["nvim-web-devicons"] hook so any plugin requiring that module transparently gets mini.icons (order-independent, per mini.icons docs).
  • oil and lualine now depend on the shared spec; lualine no longer declares nvim-web-devicons.
  • Removed nvim-web-devicons from lazy-lock.json.

Verification

Headless (NVIM_APPNAME=nvim-dev):

  • require("nvim-web-devicons") resolves to the mini.icons mock — get_icon("init.lua", "lua") returns a glyph with highlight MiniIconsGreen, package.loaded["mini.icons"] set.
  • lualine loads cleanly.
  • bin/check (lock-faithful restore): OK.

No behavior change beyond icons now coming from a single provider.

🤖 Generated with Claude Code

The config shipped two icon providers: oil used mini.icons while lualine
pulled in nvim-web-devicons (and telescope implicitly used it too).

Standardize on mini.icons. A dedicated lua/plugins/mini-icons.lua owns the
setup and calls MiniIcons.mock_nvim_web_devicons(), with a
package.preload["nvim-web-devicons"] hook so any plugin that requires that
module transparently gets mini.icons (order-independent, per mini.icons
docs). oil and lualine now depend on the shared spec, and
nvim-web-devicons is removed from the lockfile.

Verified headless: require("nvim-web-devicons") resolves to mini.icons
(get_icon returns MiniIcons* highlight groups) and lualine loads.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hypatia-tile
hypatia-tile merged commit 15bfcae into main Aug 4, 2026
3 checks passed
@hypatia-tile
hypatia-tile deleted the refactor/consolidate-icons branch August 4, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant