init.lua
init.lua copied to clipboard
Lsp.stop stop tsserver end eslint
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
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.