Skip to content

[audit] Remove orphaned nvim-web-devicons entry from lock file#285

Merged
stanfish06 merged 1 commit into
masterfrom
audit/remove-devicons-lockfile
Jul 11, 2026
Merged

[audit] Remove orphaned nvim-web-devicons entry from lock file#285
stanfish06 merged 1 commit into
masterfrom
audit/remove-devicons-lockfile

Conversation

@stanfish06

Copy link
Copy Markdown
Owner

What

Remove the stale nvim-web-devicons entry from nvim-pack-lock.json.

File: nvim-pack-lock.json (lines 80–83 before this change)

Why it matters

nvim-web-devicons was removed from package_list in lua/config/plugins.lua when mini.nvim was added and mini_icons.mock_nvim_web_devicons() was set up to replace the module. However, the lock file entry was not cleaned up.

Two consequences:

  1. The lock file entry is dead weight — vim.pack tracks a revision for a package it does not manage, which is confusing and could interfere with future lock file tooling.
  2. If the pack/plugins/start/nvim-web-devicons/ directory still exists on disk (which it likely does, since :SyncPkgs only removes packages in the list from the old dir), its plugin/ init scripts still run at Neovim startup alongside mini.icons. mini_icons.mock_nvim_web_devicons() replaces package.loaded["nvim-web-devicons"] so require() calls return the mock, but the real plugin's highlight-group setup still executes redundantly.

Recommended action

After merging, also delete the directory from your machine:

rm -rf ~/.config/nvim/pack/plugins/start/nvim-web-devicons

Then run :SyncPkgs (or :PackerSync if using the old path) to confirm the pack dir is clean.


Generated by Claude Code

nvim-web-devicons was dropped from package_list when mini.icons was
added (mini_icons.mock_nvim_web_devicons() replaces the module). The
lock file entry is now dead weight; removing it so vim.pack no longer
tracks a package that is not managed.

The installed pack directory (pack/plugins/start/nvim-web-devicons/)
should also be deleted manually — its plugin/ scripts still run at
startup alongside mini.icons, which is redundant.
@stanfish06 stanfish06 merged commit 64dc1ec into master Jul 11, 2026
1 check passed
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.

2 participants