nvim --version: NVIM v0.5.0-705-g9f704c88a60133c47e0fd82556d7ca092546ebfa8d047466e:checkhealth result:vimls as an example)$TERM: xterm-256color:LspInstall vimls
Message: "Installation requires "sh", "npm", "mkdir"
Installation of the language server
I guess the first think to do is look here: https://github.com/neovim/nvim-lspconfig/blob/60133c47e0fd82556d7ca092546ebfa8d047466e/lua/nvim_lsp/util.lua#L378
It seems like the only system implemented are the ones that have sh, npm and mkdir. I think that this
https://github.com/neovim/nvim-lspconfig/blob/60133c47e0fd82556d7ca092546ebfa8d047466e/lua/nvim_lsp/util.lua#L390
can be easily changed to something that uses Windows Powershell:
local cmd = io.popen("powershell -command -", "w")
local install_script = ([[
mkdir -p "{{install_dir}}"
cd "{{install_dir}}"
&& npm init -y
npm install {{packages}} --no-package-lock --no-save --production
{{post_install_script}}
]]):gsub("{{(%S+)}}", install_params)
cmd:write(install_script)
cmd:close()
I had the same problem, but I went for the manual installation. If some maintainer approves I can try to implement this.
I think the idea is to completely drop the installers. See https://github.com/neovim/nvim-lspconfig/issues/334.
I was just reading that issue jaja
Most helpful comment
I think the idea is to completely drop the installers. See https://github.com/neovim/nvim-lspconfig/issues/334.