-
Notifications
You must be signed in to change notification settings - Fork 83
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
Show \ as λ optionally #96
Comments
I also added |
I personally don't like the conceal feature since it poorly interacts with most languages. In Haskell, take |
I'm pretty sure you haven't checked if your statement is actually true. Because for some reason (probably because strings syntax doesn't contain this new conceal group)
As to your opinion about readability I just don't get it. Lambda displayed as lambda is less readable than lambda displayed as |
This issue has showed up in various setups, so yes I've checked this. If there is a way to supress this then this might be an issue of specific plugins not doing so. If you want to argue with me about what you consider more readable I'm going to have to pass. I've already stated that I would accept your patch as an optional flag so your passive aggressiveness is unnecessary. |
@raichoo Well, okay. What are those setups? Because to make a patch that works I would need to recreate them to fix the issues. I'm not gonna argue about, I'm just saying I don't get it why would anyone think that |
It's highly subjective. Maybe it's because I've written Haskell that way for quite a long time and I happen to find it distracting. Heck, I get confused when I use a different colorscheme because my brain is used to certain colors for indicating certain things. But others might feel different about this so I think adding this as an option is valuable. |
@raichoo So multiline string is like that
If so, I've just checked - it works. No lambdas there. Other than that - I don't know the test cases. |
Maybe check for CPP macros as well (some libs have them), if that works just prepare a PR and I'll check it out tonight and I'll merge it ASAP. |
@raichoo Wow, I didn't even know that haskell can use CPP macros. That's insane :-). So again, probably because cpp macros is defined as region and they don't said to One question though. If I add this syntax to syntax file it doesn't work. But If I put it into |
I have to admit that some of this rather arcane Vim folder magic goes beyond me but it would be really good if we could do it the "proper way", for whatever that means. Some people have already reported issues that seem to arise because of loading order (and sadly I'm unable to reproduce them at all). |
I'll try to ask on stackexchange. Maybe someone will help. |
Any update on this? |
@luc-tielen New version of fira-code already shows |
I've played with FiraCode and using unicode to make haskell a bit nicer to read and write.
My opinion on that is that FiraCode really makes haskell more readable by making
->
,<=
,>=
etc into mathematical symbols. Unicode on the other hand is making things worse. Because for example trying to show->
as one symbol is making it less readable. The same applies to all two character symbols to some degree or another.But there is one thing FiraCode isn't making more readable, while unicode is. It's
\
lambda abstraction symbol. So I thought that maybe vim knows how to show some characters as another characters? And indeed it is.This is doing what I want, except maybe that it's using Conceal syntax group instead of keyword.
The text was updated successfully, but these errors were encountered: