Skip to content

LSP for TypeScript? #5

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

Open
raRaRa opened this issue Sep 25, 2024 · 1 comment
Open

LSP for TypeScript? #5

raRaRa opened this issue Sep 25, 2024 · 1 comment

Comments

@raRaRa
Copy link

raRaRa commented Sep 25, 2024

Hey, first of all thanks so much for an awesome course! Helped me a lot to get started (I've managed to get much further than any attemps I've tried before).

I was wondering if you could list all LSPs that you use, and potentially how to install them? Does the kickstart include LSPs for TypeScript? When I try using gd to go to definition, it doesn't open the file where the function is defined.

I think it would help a lot if this repo included some tips or instructions on how to get the right LSPs running for React + TypeScript + Tailwind, etc.

@raRaRa
Copy link
Author

raRaRa commented Sep 25, 2024

Enabling LSP for TypeScript was actually quite easy.

Open init.lua with nvim:
nvim ~/.config/nvim/init.lua

Uncomment this line:
-- ts_ls = {},

And that's pretty much it! If you want tailwind and other goodies, just type:
:Mason

Then find tailwind and press i to install it.

Hope this helps others!

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

1 participant