ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Lsp for Javascript and Typescript

scypurple opened this issue · comments

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

  • mac iterm2 Build 3.4.16
  • neovim 0.8.0
  • ecovim 2.4.2

image

image

image

I don't know how to solve the problem `root directory: Not found` everytime I use Mason update all files, it's succussful but useless.

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.

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