Skip to content

refactor(snippets): drop lean.lua in favor of lean.nvim abbreviations - #14

Merged
hypatia-tile merged 1 commit into
mainfrom
refactor/drop-lean-snippets
Aug 4, 2026
Merged

refactor(snippets): drop lean.lua in favor of lean.nvim abbreviations#14
hypatia-tile merged 1 commit into
mainfrom
refactor/drop-lean-snippets

Conversation

@hypatia-tile

Copy link
Copy Markdown
Owner

What

lua/snippets/lean.lua was a 5,593-line (64K) LuaSnip file with 1848 snippets. ~1827 were plain trigger → unicode symbol expanders (alpha→α, ldots→…, bfy→𝐲, …) with no placeholders — a hand-copied duplicate of the official Lean abbreviation table.

This duplicates lean.nvim's built-in unicode abbreviation input (\alpha→α, etc.), the maintained/canonical mechanism, already active via vim.g.lean_config.mappings. The remaining ~21 structural bracket snippets (⟨|⟩, ⟦|⟧, …) are also available as lean.nvim abbreviations (\<>, \[[, …).

Change

  • Delete lua/snippets/lean.lua.
  • Remove its entry from the snippet_files loader spec in lua/plugins/luasnip.lua.

Net: −5,594 lines, symbol input unified on lean.nvim's \-abbreviations.

Test

  • bin/check (headless startup): OK
  • No references to the file in docs/CLAUDE.md.

🤖 Generated with Claude Code

lua/snippets/lean.lua held 1848 LuaSnip snippets, ~1827 of which were
plain trigger->unicode-symbol expanders (alpha->α, ldots->…, bfy->𝐲, …)
with no placeholders. These duplicate lean.nvim's built-in unicode
abbreviation input (\alpha->α etc.), which is the maintained, canonical
mechanism and is already active via vim.g.lean_config.mappings. The
remaining ~21 structural bracket snippets (⟨|⟩, ⟦|⟧, …) are covered by
lean.nvim abbreviations too (\<>, \[[, …).

Delete the file and drop its entry from the luasnip loader spec, removing
64K of unmaintained, redundant config.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hypatia-tile
hypatia-tile merged commit e7c266a into main Aug 4, 2026
3 checks passed
@hypatia-tile
hypatia-tile deleted the refactor/drop-lean-snippets branch August 4, 2026 03:47
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