Open hemedani opened 1 year ago
Same issue for me on:
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
hmm you have a if
to check start deno or tsserver . the deno run the tsserver not run ? . I can't reproduce with default tsserver config.
please check and fixed the issue
also in the typescriptreact
file type, we should use w!
for the first time to save the files.
I had a similar issue using lazy.nvim
and lsp-zero
.
typescriptreact
files would not start tsserver
and attach it to the buffer. Regular typescript
files however where working fine. The same was also true for saving where a typescriptreact
file would require force writing to save the the file.
For me it turned out the problem was the usage of treesitter
with additional plugins. In particular using p00f/nvim-ts-rainbow
was creating an issue (at least disabling that plugin fixed the issue).
You could potentially quickly validating this by disabling treesitter temporarily.
Someone was also facing a similar issue with treesitter
I also have similar issue using lazy.nvim
{
"neovim/nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
{
"folke/neodev.nvim",
config = function()
require("neodev").setup()
end
},
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
{
"j-hui/fidget.nvim",
branch = "legacy"
},
{
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
config = function()
require("lsp_lines").setup()
end,
},
},
config = function()
require("plugin.config.lsp").setup()
end,
cmd = { "Mason" }
},
send a pr
Description
I have this config for
tsserver
anddenolsp
:LSP starts automatically in any
ts
orjs
filesbut in
tsx
files it does not start automaticallyNeovim version
NVIM v0.10.0-dev-751+gd086bc1e8-Homebrew Build type: Release LuaJIT 2.1.0-beta3 Run "nvim -V1 -v" for more info
Nvim-lspconfig version
No response
Operating system and version
macOS 12.6.7
Affected language servers
denols and tsserver
Steps to reproduce
I'm writing a full document here https://github.com/MiaadTeam/lesvim
Actual behavior
does not start automatically
tsserver
ordenols
ontsx
files.Expected behavior
No response
Minimal config
LSP log
https://gist.github.com/hemedani/0af44169fdeb0c7de850d0b58062bde7#file-lsp-log