#Neovim keeps showing error when using astro-language-server
20 messages · Page 1 of 1 (latest)
Oh I have this too I just posted: https://discord.com/channels/830184174198718474/1211854983478116382
Any luck resolving for you??
FYI I just found the answer to this - see the linked post above!
cough cough helix
I am not using prettier sadly but will try any way
that isn't the same error
I fixed that error in the last few versions of the LSP
Without the error message you're having, it's hard to tell what the issue could be
hey erica, I am still having this issue
I am on the latest astro lsp version according to mason
this is my lsp config:
astro = {
cmd = { 'astro-ls' },
filetypes = { 'astro' },
init_options = { 'typescript' },
},
I have installed prettier and prettier-plugin-astro as others suggested
your init option doesn't look complete
hmm, what's missing exactly, I found this config in some github repo but I can no longer find it 
I don't know the Neovim format too well, but basically the typescript option in JS would be:
typescript: {
"tsdk": "path to node_modules/typescript/lib"
}
For VS Code for instance, we do that: https://github.com/withastro/language-tools/blob/6fd9314b22b12a19ec104f19ce4ad5e3856a2ece/packages/vscode/src/client.ts#L65-L70
SOLVED! the issue was that I was missing the -stdio option for cmd I found out about this through the lsp logs accessed by :lsplog
