Skip to content

chore: dedup Neovim plugins left over from the LSP modernization#29

Merged
RWejlgaard merged 1 commit into
masterfrom
fix/nvim-plugin-dedup
Jun 25, 2026
Merged

chore: dedup Neovim plugins left over from the LSP modernization#29
RWejlgaard merged 1 commit into
masterfrom
fix/nvim-plugin-dedup

Conversation

@RWejlgaard

@RWejlgaard RWejlgaard commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Follow-up to #25, which modernized the LSP stack but left two plugin-dedup items untouched (they were unrelated to LSP).

Changes

Unify nvim-web-devicons
barbar and trouble still depended on the old kyazdani42/nvim-web-devicons name while nvim-tree used nvim-tree/nvim-web-devicons — the same plugin loaded twice under two identities. All three now point at nvim-tree/.

Settle on one snippet engine
cmp's expand called vsnip#anonymous, but the cmp dependency block pulled in LuaSnip + cmp_luasnip + friendly-snippets. Since friendly-snippets are LuaSnip-format, they never reached completion — snippets were effectively dead. This:

  • drops vim-vsnip
  • expands via luasnip.lsp_expand
  • lazy_load()s the friendly-snippets library
  • adds the luasnip cmp source so snippets surface in the menu

Testing

luajit -bl parses the config cleanly. Not exercised by CI (headless install + syntax check only — it never opens a buffer to expand a snippet), so verify interactively: open a buffer and confirm friendly-snippets appear in completion.

Two leftovers from the lsp-zero removal in #25:

- Unify nvim-web-devicons on the nvim-tree/ repo. barbar and trouble
  still pulled the old kyazdani42/ name, loading the same plugin twice
  under two identities.
- Settle on a single snippet engine. cmp expanded via vsnip while
  LuaSnip + friendly-snippets loaded and did nothing (friendly-snippets
  are LuaSnip-format, so they never reached completion). Drop vim-vsnip,
  expand via luasnip, lazy_load the friendly-snippets library, and add
  the luasnip cmp source so the snippets actually surface.
@RWejlgaard RWejlgaard merged commit 209f657 into master Jun 25, 2026
5 checks passed
@RWejlgaard RWejlgaard deleted the fix/nvim-plugin-dedup branch June 25, 2026 20:18
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