T
Termux6mo ago
Exelroad

help configuring lsp on neovim

i want to use bash-language-server lsp on neovim i have tried coc.nvim and now lazyvim but got the same result as shown here
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning l
anguage server with cmd: `{ "bash-language-server", "start" }` failed. The
language server is either not installed, missing from PATH, or not executab
le.
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning l
anguage server with cmd: `{ "/data/data/com.termux/files/home/.local/share/
nvim/mason/bin/bash-language-server", "start" }` failed. The language serve
r is either not installed, missing from PATH, or not executable.
Press ENTER or type command to continue
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning l
anguage server with cmd: `{ "bash-language-server", "start" }` failed. The
language server is either not installed, missing from PATH, or not executab
le.
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning l
anguage server with cmd: `{ "/data/data/com.termux/files/home/.local/share/
nvim/mason/bin/bash-language-server", "start" }` failed. The language serve
r is either not installed, missing from PATH, or not executable.
Press ENTER or type command to continue
Thank you.
No description
Solution:
you need to install bash-language-server first ```sh pkg up pkg i npm npm i -g bash-language-server...
Jump to solution
2 Replies
Solution
komo
komo6mo ago
you need to install bash-language-server first
pkg up
pkg i npm
npm i -g bash-language-server
pkg up
pkg i npm
npm i -g bash-language-server
komo
komo6mo ago
quick note that Mason.nvim will not work inside Termux. you have to install langservers by yourself
Want results from more Discord servers?
Add your server