diff --git a/.gitignore b/.gitignore index fae343e..6d96e09 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ ctags-lsp + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..1e3031b --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,44 @@ +version: 2 + +before: + hooks: + - go mod tidy + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + goarch: + - amd64 + - arm64 + ldflags: + - -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }} + +archives: + - format: tar.gz + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + format_overrides: + - goos: windows + format: zip + +brews: + - repository: + owner: netmute + name: homebrew-tap + directory: Formula + homepage: "https://github.com/netmute/ctags-lsp" + description: "LSP implementation using universal-ctags as backend" + dependencies: + - name: universal-ctags + +changelog: + sort: asc diff --git a/README.md b/README.md index 71c616e..e61954e 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,9 @@ A Language Server Protocol (LSP) implementation using `ctags` for code completion and go-to definition. This won't replace your dedicated language server, and it doesn't try to. The goal is to have a "better than nothing" language server that's trivial to setup for any language. + +## Installation + +``` +brew install netmute/tap/ctags-lsp +```