Repository navigation
Update app-neovim.sh - build from binaries - #6
Conversation
Build neovim from binaries because in apt last stable version is missing sometimes. Build made accordingly this readme: https://github.com/neovim/neovim/blob/master/BUILD.md
|
@Salanoid for me eza and alacritty (among others) are also missing from apt (no install candidate). Do you have any insight as to way that might be? |
This thread might be helpful: alacritty/alacritty#3863. You can try running From what I've seen, you need to add an unofficial existing PPA |
|
Don't love the idea of having to build from source. Maybe @tjdevries has an opinion here? |
|
I'd rather instead of building from source build from neovim's prebuild binaries like this(in nvim's INSTALL.MD) curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gzAnd then in the shell config make sure we add that to the path(bash example) export PATH="$PATH:/opt/nvim-linux64/bin"This way we don't need to build from source but instead form nvim's own prebuild's, which is the way they recommend us installing it(and how I install it myself) |
|
We can install the prebuilt bin like we do zellij: https://github.com/basecamp/omakub/blob/master/install/app-zellij.sh |
|
I propose this, if this is good do we make a different pull request or change this one? #!/bin/bash
# Neovim installation
cd ~/Downloads
wget -O nvim-linux64.tar.gz "https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz"
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz
export PATH="$PATH:/opt/nvim-linux64/bin"
cd -
if [ ! -d "$HOME/.config/nvim" ]; then
git clone https://github.com/LazyVim/starter ~/.config/nvim
cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua
fiAnd also change the bashrc to include export PATH="$PATH:/opt/nvim-linux64/bin" |
|
Too much. The path in the app-zellij.sh installer is the way, if we go with these prebuilt binaries. Which does bring up a bigger point that we need to eventually get this project onto being ready for arm64 too. Snapdragon is coming! |
fair enough how's this(tested and verified this works super super fast), no weird shell add stuff, just plain fast neovim cd ~/Downloads
wget -O nvim-linux64.tar.gz "https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz"
sudo rm -rf /usr/local/bin/nvim # Remove any existing binary to avoid conflicts
sudo tar -C /usr/local/bin -xzf nvim-linux64.tar.gz --strip-components=2 nvim-linux64/bin/nvim
cd -
if [ ! -d "$HOME/.config/nvim" ]; then
git clone https://github.com/LazyVim/starter ~/.config/nvim
cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua
fi |
|
Let's follow the exact same procedure, using that install command, etc. The less variation we have between the installers, the better. |
Install Neovim from a prebuilt file following the exact same procedure we use for Zellij.
Following the discussion, I made a new commit; we will install Neovim using the same procedure as for Zellij. |
|
looks better then my solution, and works great, thanks for the commit |
|
Thank you and thanks for the help! |
|
Seems like nvim 0.10 has incompatibilities with the lazyvim setup we're using. When upgrading, I get this: |
|
I don't know exactly how to reproduce it, for me the installation of neovim v0.10.0 with lazygit worked with this script. |
|
The installation worked fine, it's nvim itself at 0.10 that seems to have trouble with the lazyvim configuration. |
|
0.10 should work fine with previous configs unless you did some weird stuff, perhaps delete all the cache and data? |
|
Yes, I use v0.10.0 with lazyvim and works fine. |
|
I tried the script again on a fresh Ubuntu installation and encountered the same errors as @dhh. Neovim v0.10.0 from prebuilt doesn't work with Packer and LazyVim. To get the latest version with everything needed, we have to build it from source. I used this old script of mine, and it works fine. |
|
Maybe we just need @tjdevries to release a 0.10.1, then? Either way, let's go the prebuilt binary way, but hold off until it's compatible with lazyvim etc. |
You can always install the snap version of Alacritty with the |
Update app-neovim.sh - build from binaries
Build neovim from binaries because in apt last stable version is missing sometimes.
Build made accordingly to this readme:
https://github.com/neovim/neovim/blob/master/BUILD.md