Skip to content

Can it be used on neovim? #206

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

Closed
horaoen opened this issue Feb 22, 2023 · 8 comments
Closed

Can it be used on neovim? #206

horaoen opened this issue Feb 22, 2023 · 8 comments

Comments

@horaoen
Copy link

horaoen commented Feb 22, 2023

No description provided.

@mrmckeb
Copy link
Owner

mrmckeb commented Feb 22, 2023

Hi @horaoen, if it supports the TypeScript Language Service, then yes!

From what I can see, it does:
https://terminalroot.com/how-to-configure-lsp-for-typescript-in-neovim/

@mrmckeb mrmckeb closed this as completed Feb 22, 2023
@horaoen
Copy link
Author

horaoen commented Feb 26, 2023

Hi @horaoen, if it supports the TypeScript Language Service, then yes!

From what I can see, it does: https://terminalroot.com/how-to-configure-lsp-for-typescript-in-neovim/

thanks a lot

@horaoen
Copy link
Author

horaoen commented Feb 26, 2023

I installed typescript language server, but typescript language server does not have css module related functions, then I installed cssmodules-language-server, it works very well, anyway the purpose is achieved

@mrmckeb
Copy link
Owner

mrmckeb commented Feb 26, 2023

Thanks for the update @horaoen - you would need to install the TypeScript Language Server and configure it to use your tsconfig.json and this plugin I think, but I couldn't say for sure without testing it... I'm glad you found a working solution!

@horaoen
Copy link
Author

horaoen commented Feb 27, 2023

Thank you for your reply @mrmckeb, it works after configing the tsconfig.json.

@johhnsmmith198
Copy link

@horaoen How did you configure typescript-language-server to use your local tsconfig.json, please?

@horaoen
Copy link
Author

horaoen commented Mar 13, 2023

@horaoen How did you configure typescript-language-server to use your local tsconfig.json, please?

just fellow the readme and put config { "compilerOptions": { "plugins": [{ "name": "typescript-plugin-css-modules" }] } } into tsconfig.json. I think tssersver would automatic reading tsconfig.json which is in your front-end project.

@nyngwang
Copy link

@mrmckeb Don't worry, I just confirmed that your plugin works well with neovim. If there is a problem is only possible culprit will be tsconfig.json. This is because neovim just uses tsserver behind the scenes and it reads tsconfig.json.

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

4 participants