TLDR:
Install version 0.5 or greater, debian as of right now installs v0.4.4
Hey, I experienced this same thing just now and looked here for answers (they were not helpful).
Neovim v0.5.0+ has added supporting ~/.config/nvim/init.lua
directly. I think there are some workarounds for v0.4 and below, but I don't know since today is the beginning of my neovim journey. Anyways do the following:
make sure that you are at least v0.5 by running:
nvim --version | head -n 1
if you are not v0.5+ then do the following:
** NOTE: as of writing this v0.9.1 is the latest, check the github for the latest and change where it says v0.9.1
:
https://github.com/neovim/neovim/releases
Download the appimage
wget https://github.com/neovim/neovim/releases/download/v0.9.1/nvim.appimage
Extract the appimage
chmod u+x nvim.appimage && ./nvim.appimage
** If this fails because of FUSE then do the following (mine failed)
./nvim.appimage --appimage-extract
./squashfs-root/usr/bin/nvim
Copy the binary
cp ./squashfs-root/usr/bin/nvim usr/bin/nvim
Set an alias if needed or use a symlink
Alias
# in your bashrc
alias vim='nvim'
symlink (it will fail if vim is already installed, I suggest an alias)
ln -s /usr/bin/nvim /usr/bin/vim
sudo cp squashfs-root/usr/* /usr/ -r
, as I was having error caused by those files missing. – Overwork