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

How to set the syntax (or grammar) for current opened R file? #2229

Closed
ipstone opened this issue Apr 23, 2022 · 3 comments
Closed

How to set the syntax (or grammar) for current opened R file? #2229

ipstone opened this issue Apr 23, 2022 · 3 comments

Comments

@ipstone
Copy link

ipstone commented Apr 23, 2022

Hello, I am trying to use helix with R (https://www.r-project.org/ ), but opening a R script file, there's no syntax highlighting, also the syntax tree based navigation doesn't seem working.

I am wondering whether we already have R language support, and if not, is there a way to add the R language support.
Ultimately, I would like to have something similar to nvim-R (https://github.com/jalvesaq/Nvim-R )to work with helix.

Thanks!

  • ipstone
@the-mikedavis
Copy link
Member

Which version of helix are you running (hx -V)? And what does hx --health r say?

@the-mikedavis
Copy link
Member

Syntax highlighting was added recently #1998 (after the 22.03 release)

@ipstone
Copy link
Author

ipstone commented May 3, 2022

Thanks @the-mikedavis - verified, my version was 22.03 (which is the current mac os x brew install). After compiling to the latest source, things works fine on m1 mac.

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

No branches or pull requests

2 participants