Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added catpuccin.json and .goreleaser.yml workflow #5

Merged
merged 2 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release
on:
push:
tags:
- "v*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
- netbsd
archives:
- name_template: "{{ .Os }}-{{ .Arch }}"
format: binary
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
use: github-native
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
4 changes: 2 additions & 2 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ func writeConfig(colourFile string, rcFile string) {
file.WriteString("set completion-fg \"" + colourConfig.Text + "\"\n")
file.WriteString("set completion-highlight-bg \"" + colourConfig.Highlight + "\"\n")
file.WriteString("set completion-highlight-fg \"" + colourConfig.Background + "\"\n")
file.WriteString("set inputbar-bg \"" + colourConfig.Background + "\"\n")
file.WriteString("set inputbar-bg \"" + colourConfig.Page + "\"\n")
file.WriteString("set inputbar-fg \"" + colourConfig.Text + "\"\n")
file.WriteString("set statusbar-bg \"" + colourConfig.Background + "\"\n")
file.WriteString("set statusbar-fg \"" + colourConfig.Text + "\"\n")
file.WriteString("set highlight-color \"" + colourConfig.Highlight + "\"\n")
file.WriteString("set highlight-active-color \"" + colourConfig.HighlightActive + "\"\n")
file.WriteString("set default-bg \"" + colourConfig.Background + "\"\n")
file.WriteString("set default-fg " + colourConfig.Text + "\n")
file.WriteString("set default-fg \"" + colourConfig.Text + "\"\n")
file.WriteString("set recolor-lightcolor \"" + colourConfig.Page + "\"\n")
file.WriteString("set recolor-darkcolor \"" + colourConfig.Text + "\"\n")
file.WriteString("set index-bg \"" + colourConfig.Page + "\"\n")
Expand Down
8 changes: 8 additions & 0 deletions examples/catpuccin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"page": "#1c1d2d",
"text": "#c3bac6",
"background": "#beade9",
"highlight": "#abe9b3",
"highlight_active": "#96cdfb",
"error": "#f28fad"
}