#Neovim keeps showing error when using astro-language-server

20 messages · Page 1 of 1 (latest)

coral verge
#

syntax highlighting with treesitter works fine tho

barren otter
#

FYI I just found the answer to this - see the linked post above!

chilly inlet
#

cough cough helix

coral verge
#

I am not using prettier sadly but will try any way

coral verge
#

that isn't the same error

queen moth
#

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

coral verge
#

Ok updating and trying it out

#

Yay! Its working now! houston_celebrate

eternal pollen
#

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

queen moth
#

your init option doesn't look complete

eternal pollen
queen moth
#

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"
}
eternal pollen
#

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