-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract abbreviations functionality so that other languages can use it as well #117
Comments
Also, any interest in adding https://github.com/L3MON4D3/LuaSnip support? |
I've seen LuaSnip but not tried it myself -- definitely open to adding it though yeah. (And yeah like I said definitely happy to extract this piece too, though it'll take a bit of generalizing I think, but yeah it's a good idea!) |
The thought occurs that this (Unicode input) is a relatively common task, and that |
I think that's quite interesting! I'm aware of digraphs but I've essentially never used them myself even before this plugin (for some of the reasons you mentioned -- worst of which is the input suggestion thing, where if you type stuff you have no idea what you typed already, which symbol you're on the way to, etc.) We'd need upstream changes though obviously -- probably that's part of what you're suggesting right? If so could definitely do some thinking about what that'd look like, I think the list you just gave is a pretty decent one on stuff that'd be needed, along with maybe being able to configure how to enter digraph entry mode (e.g. here we need it super often and want to trigger it with |
Same here...
Yes, the hooks for digraph would have to go upstream (maybe even to vim?) Also agreed on exposing that feature so it's mappable/triggerable from a script. It's probably not going to be a full replacement for autocomplete or snippet UX, but it's interesting as a sort of "vim-sneak for unicode"... |
If one were to go down that route, it might make sense to even generalize this to "ngraphs" (which may short-circuit) -- this way you can actually type Actually, a new complete mode ("symbols", And there's also |
Yeah, the more I think about it, the more |
If anyone wants the abbreviations in vscode format for luasnip etc. |
Before this repo, I had something which did that essentially. It live(d) here https://github.com/Julian/lean-unicode.vim/ |
Ups, hit space bar which GitHub decided to focus on the "Close with comment button"... But yeah the above was a previous attempt -- we can do better than both I think (which is what Christian was requesting) |
For example, Julia REPL supports entering Unicode chars via, e.g.,
\alpha
->α
or\:beer:
->🍺
, which looks quite similar to Lean.(You can see a full list here, which is generated from https://github.com/nvim-telescope/telescope-symbols.nvim/blob/master/script/julia_symbols.jl.)
Also see: https://github.com/GoldsteinE/compe-latex-symbols
The text was updated successfully, but these errors were encountered: