Compare commits
3 Commits
22172d3522
...
ae42fa6674
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae42fa6674 | ||
|
|
122e550adf | ||
|
|
4b8e83a60e |
@ -75,7 +75,8 @@ local treesitter_config_setup = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local function treesitter_configs()
|
local function treesitter_configs()
|
||||||
require('nvim-treesitter.configs').setup(treesitter_config_setup)
|
require 'nvim-treesitter.configs'
|
||||||
|
.setup(treesitter_config_setup)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function config()
|
local function config()
|
||||||
|
|||||||
@ -20,6 +20,13 @@ make_scripts() (
|
|||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_deps() (
|
||||||
|
GO_MOD=${1:-go.mod}
|
||||||
|
START_AT=$(grep -n '^require ($' "${GO_MOD}" | awk -F : '{print $1}' | head -n 1)
|
||||||
|
END_AT=$(grep -n '^)$' "${GO_MOD}" | awk -F : '{print $1}' | head -n 1)
|
||||||
|
awk 'NR>'"${START_AT}"' && NR<'"${END_AT}"' {print $1}' "${GO_MOD}"
|
||||||
|
)
|
||||||
|
|
||||||
make_script() (
|
make_script() (
|
||||||
cat <<-EOF > "${1}"
|
cat <<-EOF > "${1}"
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
@ -5,7 +5,7 @@ set -euo pipefail
|
|||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||||
|
|
||||||
VERSION=${VERSION:-v1.26.1}
|
VERSION=${VERSION:-v1.29.0}
|
||||||
DEST=${XDG_DATA_HOME}/apps/releases/buf
|
DEST=${XDG_DATA_HOME}/apps/releases/buf
|
||||||
CURRENT=${DEST}/current
|
CURRENT=${DEST}/current
|
||||||
URL=https://github.com/bufbuild/buf/releases/download/${VERSION}/buf-$(uname)-$(uname -m).tar.gz
|
URL=https://github.com/bufbuild/buf/releases/download/${VERSION}/buf-$(uname)-$(uname -m).tar.gz
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user