If don't have neovim installed in your machine, check the neovim repository.
- First lets make sure we have NodeJs installed running the following command:
# macOS or Linux
node -v
# Windows (powershell)
node -vIf it returns its version, that means you already have NodeJs installed. But if you see an error or the version didn't showed, you must install it.
You can download NodeJs directly from their website: NodeJs | Downloads
- Once the installation is complete, run the following command (just to make sure everything is Ok):
# macOS or Linux
node -v
# Windows (powershell)
node -vIf it returns its version, that means NodeJs has been successfully installed.
You may already have Ruby installed on your computer. You can check inside a terminal emulator by typing:
ruby -vGo to ruby download page: Ruby | Download
- Download Ruby installer
- Run the exe to download
- Add Ruby to your path env variable
- And check the installation with the commands bellow:
ruby -virb -vgem -vgem sourcesOr you can also use the Windows Package Manager CLI to install Ruby:
winget install RubyInstallerTeam.Ruby.{MAJOR}.{MINOR}
# Example
winget install RubyInstallerTeam.Ruby.3.2
# To see all versions avaliable
winget search RubyInstallerTeam.Ruby
# Note: if you are installing ruby for projects, you may want to install RubyWithDevKit
winget install RubyInstallerTeam.RubyWithDevKit.3.2Also on Windows, you can use the Chocolatey Package Manager to install Ruby:
choco install rubyIt will reuse existing msys2, or install own for complete Ruby development environment.
Go to ruby download page: Ruby | Download
Then choose the way you prefer to install it.
You may already have Python installed on your computer. You can check inside a terminal emulator by typing:
python --versionYou can find everything you want in this website: Real Python
But I will live some command lines you can run to install it, anyway.
You can use winget to install it
winget install -e --id Python.Python.3.9You can use Homebrew to download and install Python:
curl https: // bootstrap.pypa.io /get- pip.py - o get- pip.py sudo brew install python3If you are using Ubuntu 16.10 or newer, then you can easily install Python 3.6 with the following commands:
$ sudo apt-get update
$ sudo apt-get install python3.6If you’re using another version of Ubuntu (e.g. the latest LTS release) or you want to use a more current Python, we recommend using the deadsnakes PPA to install Python 3.8:
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.8If you are using other Linux distribution, chances are you already have Python 3 pre-installed as well. If not, use your distribution’s package manager. For example on Fedora, you would use dnf:
$ sudo dnf install python3- Make a backup of your current Neovim files:
# required
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak
# optional but recommended
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak- Clone the nvim config
git clone https://github.com/icbritto/nvim $env:LOCALAPPDATA\nvim- Remove the
.gitfolder, so you can add it to your own repo later
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force- Start Neovim
nvim- Make a backup of your current Neovim files:
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}- Clone the nvim config
git clone https://github.com/icbritto/nvim ~/.config/nvim- Remove the
.gitfolder, so you can add it to your own repo later
rm -rf ~/.config/nvim/.git- Start Neovim
nvimIf you are having problems installing the lsp plugins first lets try running the following commands:
-
First open an administrator level command prompt.
-
Note the current global prefix:
npm prefix -g- Set the global prefix to the CI user:
npm config set prefix <C:\Users\USER\AppData\Roaming\npm>- Install the needed packages:
npm i -g PKG- Alternatively, you can install pnpm even if you don't have Node.js installed, using the following scripts3:
On Windows Using PowerShell:
iwr https://get.pnpm.io/install.ps1 -useb | iexOn POSIX systems
curl -fsSL https://get.pnpm.io/install.sh | sh -