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

eslint LSP integration #40

Closed
jacksonludwig opened this issue Feb 18, 2023 · 2 comments
Closed

eslint LSP integration #40

jacksonludwig opened this issue Feb 18, 2023 · 2 comments

Comments

@jacksonludwig
Copy link

I see that in the 29 branch of this plugin, the built-in eglot LSP client is used. I may be wrong but I think eglot on supports one server per buffer. Is there any way to integrate another lsp (commonly eslint) at this point?

Thanks.

@orzechowskid
Copy link
Owner

I think you're correct that eglot only supports one LSP server per buffer: joaotavora/eglot#976 . in the specific case of typescript plus eslint, the author of eglot suggests to use typescript-language-server as the LSP server and install the flymake-eslint emacs package to handle linting. that of course does not support other features like inserting a comment to disable a rule, etc; if that's a dealbreaker for you then you can look into using emacs' own tsx-ts-mode plus lsp-mode plus the css-in-js minor mode available here.

for what it's worth, the comment here seems to indicate that multiple concurrent LSP servers is on the eglot roadmap.

@jacksonludwig
Copy link
Author

Okay got it. Thanks for the information.

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