Neovim
Install Neovim
cd Downloads
wget https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.deb
sudo apt install ./nvim-linux64.deb
nvim -v
Install Dein
wget https://raw.githubusercontent.com/Shougo/dein-installer.vim/master/installer.sh
chmod +x installer.sh
I wanted it to be in my .config/nvim directory instead of .local/share/dein so i switched it.
./installer.sh ~/.local/share/dein ~/.config/nvim
Add the following to install nvim-lspconfig and bash-language server:
call dein#add('neovim/nvim-lspconfig')
call dein#add('bash-lsp/bash-language-server')
Then install it
:call dein#install()
Add the following in init.vim
local >> EOF
local lspconfig = require('lspconfig')
lspconfig.bashls.setup{}
lspconfig.rust_analyzer.setup{}
EOF
Adding Node
sudo apt install npm
Using package manager will install an old version 8.5.1 to be specific, so when you try to install bash language-server it will fail.
Instead we are going to do the following:
Download it from node website then
wget https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz
tar -xf node-v18.15.0-linux-x64.tar.xz
cd node-v18.15.0-linux-x64
We will then copy the following directories
sudo cp -r ./{lib,share,include,bin} /usr/local
you can check if its installed by doing:
node --version
v18.15.0
then install bash-language server
sudo npm install -g bash-language-server
install Shellcheck
sudo apt install shellcheck