Skip to content
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

Add setting to enable font ligatures in the code editor #2609

Merged
merged 2 commits into from
May 17, 2024

Conversation

JBraungardt
Copy link
Contributor

As jetbrains-mono is used as the default font in the codemirror editor and this font has support for ligatures a new setting is added to enable rendering with ligatjures.
The default for this setting is off so that the current behavior is maintained.
image
image

@CLAassistant
Copy link

CLAassistant commented May 16, 2024

CLA assistant check
All committers have signed the CLA.

const DEFAULTSETTINGS = {
editor_auto_completion: true,
editor_auto_signature: true,
editor_font_size: EDITOR_FONT_SIZE.normal,
editor_theme: EDITOR_THEME.default,
editor_ligatures: EDITOR_LIGATURES.off,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just make it a boolean, like editor_auto_completion :)

@jonatanklosko
Copy link
Member

@JBraungardt sounds good, just one comment and we can ship it!

FTR we intentionally disable it by default, so that people new to Elixir are not confused with |> and similar, but an opt-in is fine :)

Copy link

github-actions bot commented May 17, 2024

Uffizzi Preview deployment-51880 was deleted.

Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JBraungardt perfect!

Looks like you need to sign CLA with the other account that you pushed. Or perhaps you can squash and force push with the first one :)

@JBraungardt
Copy link
Contributor Author

@JBraungardt perfect!

Looks like you need to sign CLA with the other account that you pushed. Or perhaps you can squash and force push with the first one :)

Done

@jonatanklosko jonatanklosko changed the title Add setting to render ligatures in codemirror cell editor. Add setting to enable font ligatures in the code editor May 17, 2024
@jonatanklosko jonatanklosko merged commit 7a31e89 into livebook-dev:main May 17, 2024
8 checks passed
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.

None yet

3 participants