Bryant
November 20, 2021, 7:07am
22
-- js/typescript
require'lspconfig'.tsserver.setup{
cmd = { "typescript-language-server.cmd", "--stdio" },
capabilities = capabilities,
filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
}
is this correct? i cant get it working…
mjlbach
November 20, 2021, 12:34pm
23
You need to start being more specific. Can’t get it working means nothing, what does not working mean? Does the language server not start? Is there an error?
Bryant
November 20, 2021, 1:17pm
24
no error occur. i start typing function
with func first but there is no snippet… idk y i will dig deep
mjlbach
November 20, 2021, 1:31pm
25
is it the snippet that is not working, or is it auto-completion (in general) that is not working? Do any completion candidates show? If so, it’s an issue with whatever snippet you were expecting, and you may need to manually add the snippet you want to your plugin.
Bryant
November 21, 2021, 3:51am
26
Error
cmd ["typescript-language-server"] is not executable.
cmd ["typescript-language-server"] is not executable.
Press ENTER or type command to continue
My config:
-- tsserver
require'lspconfig'.tsserver.setup{
cmd = { "typescript-language-server", "--stdio" },
filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
init_options = {
hostInfo = "neovim",
},
capabilities = capabilities,
}
mjlbach
November 21, 2021, 3:55am
27
Same thing, postfix with cmd…
Bryant
November 21, 2021, 3:57am
28
still the same…
cmd ["typescript-language-server.cmd"] is not executable.
cmd ["typescript-language-server.cmd"] is not executable.
Bryant
November 21, 2021, 3:59am
29
btw, how can i add colors like bright red to my error?
Bryant
November 27, 2021, 2:21am
31
How can i solve this? the prob is still here