-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
astro-lscan be installed vianpm>sh
npm install -g @astrojs/language-serverSnippet to enable the language server: >lua
vim.lsp.enable('astro')
This didn't attach astro lsp for me, I had to also install typescript as dev dependency: npm install --save-dev typescript , before that I was getting this error:
Error executing vim.schedule lua callback: .../neovim/0.11.3/share/nvim/runtime/lua/vim/lsp/client.lua:545: RPC[Error] code_name = InternalError, message = "R
equest initialize failed with message: The `typescript.tsdk` init option is required. It should point to a directory containing a `typescript.js` or `tsserver
library.js` file, such as `node_modules/typescript/lib`."
stack traceback:
[C]: in function 'assert'
.../neovim/0.11.3/share/nvim/runtime/lua/vim/lsp/client.lua:545: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Maybe you can include this in the documentation?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working