refactor(snippets): drop lean.lua in favor of lean.nvim abbreviations - #14
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
lua/snippets/lean.luawas a 5,593-line (64K) LuaSnip file with 1848 snippets. ~1827 were plaintrigger → unicode symbolexpanders (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 viavim.g.lean_config.mappings. The remaining ~21 structural bracket snippets (⟨|⟩,⟦|⟧, …) are also available as lean.nvim abbreviations (\<>,\[[, …).Change
lua/snippets/lean.lua.snippet_filesloader spec inlua/plugins/luasnip.lua.Net: −5,594 lines, symbol input unified on lean.nvim's
\-abbreviations.Test
bin/check(headless startup): OK🤖 Generated with Claude Code