so i decided to use neovim instead of vscode, im a beginner to that,
i created the init.lua file on ~/.config/nvim/,
with simple script :
print("hello world")
the script never executed, i also tried this way on this video https://youtu.be/w7i4amO_zaE and nothing works for me
i want the file init.lua to be executed, i need your help
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:
nvim --version | head -n 1
** 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
wget https://github.com/neovim/neovim/releases/download/v0.9.1/nvim.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
cp ./squashfs-root/usr/bin/nvim usr/bin/nvim
# in your bashrc
alias vim='nvim'
ln -s /usr/bin/nvim /usr/bin/vim
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With