ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.21k stars 109 forks source link

No Lsp for Javascript and Typescript #109

Closed scypurple closed 1 year ago

scypurple commented 1 year ago

I don't know if it's a bug or if I missed something Environment

ecosse3 commented 1 year ago

Hi. I checked in official LSP config documentation for neovim and this behaviour is expected because tsserver requires a root directory to match specific patterns 'tailwind.config.js', 'tailwind.config.ts', 'postcss.config.js', 'postcss.config.ts', 'package.json', 'node_modules', '.git' to start the server as default option described here.

scypurple commented 1 year ago

I add the root_dir into setup.lua , it worked, thank you.