init.lua icon indicating copy to clipboard operation
init.lua copied to clipboard

Lsp.stop stop tsserver end eslint

Open nomorechokedboy opened this issue 2 years ago • 1 comments

Hello everyone, I have followed the video "0 to LSP : Neovim RC From Scratch" to setup my rust light saber (Thank you so much ThePrimeagen). However, the config is causing tsserver and eslint to stop. If anyone have the isssue with tsserver and eslint got detached everytime you navigate with telescope or open new buffer, please comment those line. This is a temporary fix because I am not experience with neovim config. If you have a proper solution, please point out for me

  if client.name == "eslint" then
      vim.cmd.LspStop('eslint')
      return
  end

nomorechokedboy avatar Dec 30 '22 17:12 nomorechokedboy

Hi. When I do something in JavaScript or TypeScript files, I have the following ESLint error, when I comment this code. I try to use eslint-lsp and eslint_d. With eslint-lsp I have this error, with eslint_d errors aren't shown.

ESLint: Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.. Please see the 'ESLint' output channel for details
.

Request Actions:
1. Open Output
2. Ignore for this Session
Type number and <Enter> or click with the mouse (q or empty cancels):

I tried to use other plugins and settings for LSP but I don't know how to fix it. I think to use nvim-coc. If I'll can't resolve this problem.

Flamme13 avatar Jan 10 '23 17:01 Flamme13