mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
Use the neovim app image for debian 12 (#642)
Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
e39d679e38
commit
df4f44461e
|
@ -4,15 +4,6 @@
|
||||||
|
|
||||||
gitpath="$HOME/.local/share/neovim"
|
gitpath="$HOME/.local/share/neovim"
|
||||||
|
|
||||||
checkNeovimVer() {
|
|
||||||
# lazy.nvim requires nvim >= 0.8.0
|
|
||||||
nvim_version=$(nvim --version | head -n 1 | awk '{print $2}')
|
|
||||||
if [ "$(printf "%s\n" "$nvim_version" "0.8.0" | sort -V | head -n 1)" != "0.8.0" ]; then
|
|
||||||
printf "%b\n" "${RED}Neovim version $nvim_version not supported.${RC}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
cloneNeovim() {
|
cloneNeovim() {
|
||||||
# Check if the dir exists before attempting to clone into it.
|
# Check if the dir exists before attempting to clone into it.
|
||||||
if [ -d "$gitpath" ]; then
|
if [ -d "$gitpath" ]; then
|
||||||
|
@ -30,7 +21,10 @@ installNeovim() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm neovim ripgrep fzf python-virtualenv luarocks go shellcheck git
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm neovim ripgrep fzf python-virtualenv luarocks go shellcheck git
|
||||||
;;
|
;;
|
||||||
apt-get|nala)
|
apt-get|nala)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fd-find python3-venv luarocks golang-go shellcheck git
|
"$ESCALATION_TOOL" "$PACKAGER" install -y ripgrep fd-find python3-venv luarocks golang-go shellcheck git
|
||||||
|
curl -sSLo /tmp/nvim.appimage https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
||||||
|
chmod u+x /tmp/nvim.appimage
|
||||||
|
"$ESCALATION_TOOL" mv /tmp/nvim.appimage /usr/local/bin/nvim
|
||||||
;;
|
;;
|
||||||
dnf|zypper)
|
dnf|zypper)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fzf python3-virtualenv luarocks golang ShellCheck git
|
"$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fzf python3-virtualenv luarocks golang ShellCheck git
|
||||||
|
@ -60,7 +54,6 @@ linkNeovimConfig() {
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
installNeovim
|
installNeovim
|
||||||
checkNeovimVer
|
|
||||||
cloneNeovim
|
cloneNeovim
|
||||||
backupNeovimConfig
|
backupNeovimConfig
|
||||||
linkNeovimConfig
|
linkNeovimConfig
|
||||||
|
|
Loading…
Reference in New Issue
Block a user