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

(Question) What would be the right way to use linters? #2385

Closed
ValJed opened this issue May 3, 2022 · 2 comments
Closed

(Question) What would be the right way to use linters? #2385

ValJed opened this issue May 3, 2022 · 2 comments

Comments

@ValJed
Copy link

ValJed commented May 3, 2022

First thanks for your work, Helix is a really good tool.

I think that what I need is not possible as long as helix has no plugin support but I wanted to ask because I'm really not familiar with how it should/could work.

I mainly work with JS, and I was wondering if configuring a linter server (in my case eslint) in parallel of the language-server is possible. I looked the whole default languages.toml configuration and I don't think something similar is doable yet.

I suppose it's about the grammar section and it would work with the tree sitter somehow?

Thanks in advance!

@the-mikedavis
Copy link
Member

If the linting server talks in LSP, this could be addressed by #1396. Without that, it's likely that a plugin is the correct way to integrate it.

Tree-sitter parses the syntax tree and Helix can query into the syntax tree, so it's suitable for features like syntax highlighting or determining textobjects (for example, go to the next function) but not integrating a linter.

@ValJed
Copy link
Author

ValJed commented May 4, 2022

Thanks this is exactly what I'm looking for.
Closing this one.

@ValJed ValJed closed this as completed May 4, 2022
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