Skip to content

Commit

Permalink
Merge pull request #5 from gennaro-tedesco/catpuccino
Browse files Browse the repository at this point in the history
added catpuccin.json and .goreleaser.yml workflow
  • Loading branch information
Gennaro Tedesco committed Mar 1, 2022
2 parents 43ab1fd + f7d94aa commit 43a39a0
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 2 deletions.
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"
}

0 comments on commit 43a39a0

Please sign in to comment.