Skip to content

Show \ as λ optionally #96

Open
Open
@purpleP

Description

@purpleP

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.

syn match haskellLambda '\\' conceal cchar=λ
set conceallevel 2 concealcursor=nv

This is doing what I want, except maybe that it's using Conceal syntax group instead of keyword.

screenshot 2017-05-05 13 26 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions