From 82415670217d9a4c1bc8db2cc90d013e9f759e03 Mon Sep 17 00:00:00 2001 From: Shu Kutsuzawa Date: Thu, 26 Oct 2023 02:21:00 +0900 Subject: [PATCH] enable to manage nvim with aqua --- .config/aqua/aqua.yaml | 2 ++ .config/aqua/registry.yaml | 30 ++++++++++++++++++++++++++++++ .zsh/zinit_wait.zsh | 12 ------------ 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/.config/aqua/aqua.yaml b/.config/aqua/aqua.yaml index 78637d8b..6d1ff4e2 100644 --- a/.config/aqua/aqua.yaml +++ b/.config/aqua/aqua.yaml @@ -26,3 +26,5 @@ packages: - name: jqlang/jq@jq-1.7 - name: kubernetes/kubectl@v1.25.15 - name: kubernetes-sigs/kustomize@kustomize/v5.2.1 +- name: neovim/neovim@nightly + registry: custom diff --git a/.config/aqua/registry.yaml b/.config/aqua/registry.yaml index fc372c90..795cb5cf 100644 --- a/.config/aqua/registry.yaml +++ b/.config/aqua/registry.yaml @@ -4,3 +4,33 @@ packages: repo_name: tfswitch asset: 'tfswitch_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz' description: tfswitch is a command line tool to switch between different versions of terraform. +- type: github_release + repo_owner: neovim + repo_name: neovim + description: Hyperextensible Vim-based text editor + supported_envs: + - darwin + - linux + - amd64 + replacements: + windows: win64 + linux: linux64 + darwin: macos + asset: nvim-{{.OS}}.{{.Format}} + format: tar.gz + files: + - name: nvim + src: nvim-{{.OS}}/bin/nvim + overrides: + - goos: windows + format: zip + version_constraint: semver(">= 0.7.2") + version_overrides: + - version_constraint: "true" + overrides: + - goos: windows + format: zip + # - goos: darwin + # files: + # - name: nvim + # src: nvim-osx64/bin/nvim diff --git a/.zsh/zinit_wait.zsh b/.zsh/zinit_wait.zsh index b5483d9a..dbd9c1f2 100644 --- a/.zsh/zinit_wait.zsh +++ b/.zsh/zinit_wait.zsh @@ -12,12 +12,6 @@ zinit snippet $HOME/.zsh/80_custom.zsh # }}} # utils {{{ -# neovim/neovim {{{ -zinit ice wait"1" lucid as"program" pick"nvim*/bin/nvim" from:"gh-r" \ - if'is_mac' \ - bpick"nvim-macos.tar.gz" ver"nightly" -zinit light neovim/neovim -# }}} # b4b4r07/enhancd {{{ zinit ice wait pick"init.sh" lucid \ atload'export ENHANCD_FILTER="fzf --height 50% --reverse --ansi";export ENHANCD_DOT_SHOW_FULLPATH=1' \ @@ -50,12 +44,6 @@ zinit ice wait lucid as"program" from"gh-r" \ pick"ripgrep-*/rg" zinit light BurntSushi/ripgrep # }}} -# stedolan/jq {{{ -zinit ice wait"1" as"program" from"gh-r" lucid \ - mv"jq-* -> jq" pick"jq" \ - atload"alias -g JQ='| jq -C .' && alias -g JL='| jq -C . | less -R -X'" -zinit light stedolan/jq -# }}} # jonas/tig {{{ zinit ice wait"1" as"program" lucid \ make"install prefix=$ZPFX" pick"$ZPFX/bin/tig"