Closed ls-devs closed 11 months ago
@ls-devs Have you updated to v1.1.0
?
@ls-devs Have you updated to
v1.1.0
?
@hinell Yes, of course.
https://github.com/hinell/lsp-timeout.nvim/assets/8136158/3ac7ab95-361d-4a35-b57b-0910af42da9f
I've tried to run tsx
project. It works fine.
nvim-lspconfig
: https://github.com/neovim/nvim-lspconfig/commit/6428fcab6f3c09e934bc016c329806314384a41epmizio/typescript-tools.nvim/
: https://github.com/pmizio/typescript-tools.nvim/commit/102ba313f87e1f9f9864f681dd7779cac8f6d3eaDid you call lspconfig["typescript-tools"].setup()
?
Did you replace lspconfig.tsserver.setup
with the following?:
- lspconfig.tsserver.setup({ on_attach = on_attach })
+ require("typescript-tools").setup({})
+ lspconfig["typescript-tools"].setup({
+ -- ... your config
+ })
What does :set ft?
reports on typescript files in your project?
I would suggest to specify more filetypes, so tsx
files are hooked up by lspconfig
.
-- Put this into plugin spec `config = function()` body:
require("typescript-tools").setup({})
lspconfig["typescript-tools"].setup({
filetypes = {
"javascript",
"js",
"jsx",
"ts",
"tsx",
"typescript",
"javascriptreact",
"javascript.jsx",
"typescript",
"typescriptreact",
"typescript.tsx",
}
})
I can confirm it's working with the configuration you give me. I forgot to add
require("lspconfig")["typescript-tools"].setup({
filetypes = {
"javascript",
"js",
"jsx",
"ts",
"tsx",
"typescript",
"javascriptreact",
"javascript.jsx",
"typescript",
"typescriptreact",
"typescript.tsx",
},
})
Couldn't find any mention of setting up typescript-tools
with lspconfig, but found that we must disable tsserver.
Sorry for bothering with this issue since there's nothing to do with lsp-timeout
here .
Btw, appreciate your work and the changes you made about the focusable windows.
Reflected in docs: https://github.com/hinell/lsp-timeout.nvim/commit/f3294c0fc2590dd019eca4a9c4466be42bce82e6 Close this issue if it's restarting LSPs as expected.
Couldn't find any mention of setting up typescript-tools
Fill a bug report out there.
Btw, appreciate your work
Took me entire day to upgrade it. There should be zero requirements for efforts to maintain this plugin. So less config is more.
Summary
EDIT : After some investigations
tsserver
is restarted, but the LSPtypescript-tools
is not. EDIT 2 _It seems thatlua_ls
doesn't restart too. Can it be related to the fact that it is handled bylsp-zero
? Or by the latest update oflsp-timeout
?_Before switching from
jose-elias-alvarez/typescript.nvim
topmizio/typescript-tools.nvim
tsserver was restarting without any problems. Now it wont restart.If it can help, here's
typescript-tools
config :Steps to reproduce
I don't have any steps to reproduce the issue, all I can give you is my neovim configuration if you want to try. You can find it here : ls-devs/nvim
Versions
NVIM v0.10.0-dev-1413+g684e93054-dirty Build type: RelWithDebInfo LuaJIT 2.1.1697887905