Compare commits

..

2 Commits

Author SHA1 Message Date
Buddy Sandidge
73d1f5fb49 Update vim config 2023-05-18 21:54:53 -07:00
Buddy Sandidge
bfcb270cae Add github_tags function to get tags on github 2023-05-18 21:53:54 -07:00
4 changed files with 14 additions and 3 deletions

View File

@ -76,6 +76,18 @@ github_releases() (
"https://api.github.com/repos/${USER}/${REPO}/releases" "https://api.github.com/repos/${USER}/${REPO}/releases"
) )
github_tags() (
USER=${1}
REPO=${2-}
if [ -z "${REPO}" ]; then
USER=$(echo "${1}" | sed 's|/| |g' | awk '{print $1}')
REPO=$(echo "${1}" | sed 's|/| |g' | awk '{print $2}')
fi
curl --silent --header "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${USER}/${REPO}/tags" |
jq -r '.[].name'
)
command_installed() ( command_installed() (
set -ue set -ue
cmd=${1} cmd=${1}

View File

@ -1,4 +1,4 @@
Plug 'junegunn/fzf', { 'tag': '0.37.0' } Plug 'junegunn/fzf', { 'tag': '0.40.0' }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
map <leader>fz :GFiles<CR> map <leader>fz :GFiles<CR>

View File

@ -1 +1 @@
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'fatih/vim-go'

View File

@ -37,7 +37,6 @@ Plug 'dense-analysis/ale', {
\ ] \ ]
\ } \ }
Plug 'prettier/vim-prettier', { Plug 'prettier/vim-prettier', {
\ 'branch': 'release/1.x', \ 'branch': 'release/1.x',
\ 'do': 'npm install', \ 'do': 'npm install',