1
0
mirror of https://github.com/amix/vimrc synced 2025-07-07 08:45:00 +08:00

Add support with Go language.

This commit is contained in:
Kurtis Moxley
2022-05-27 20:16:55 +08:00
parent 71e3f2fa49
commit de80db5969
205 changed files with 29172 additions and 0 deletions

View File

@ -0,0 +1,12 @@
Thanks for improving vim-go! Before you dive in please read the following:
1. Please read our
[Documentation](https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt),
it might have a solution to your problem.
2. If you add a new feature then please don't forget to update the documentation:
[doc/vim-go.txt](https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt).
3. If it's a breaking change or exceeds 100 lines of code then please open an
issue first and describe the changes you want to make.
4. See `:help go-development` for instructions on how to run and write tests. If
you add a new feature be sure you also include a test if feasible.

View File

@ -0,0 +1 @@
patreon: bhcleek

View File

@ -0,0 +1,50 @@
<!--
Before filing an issue, please check if vim-go's help addresses your problem (see `:help go-troubleshooting`).
Consider executing `:GoReportGitHubIssue` to populate much of this information automatically.
-->
### What did you do? (required: The issue will be **closed** when not provided)
<!--
If possible, please provide clear steps for reproducing the problem.
-->
### What did you expect to happen?
### What happened instead?
### Configuration (**MUST** fill this out):
#### vim-go version:
#### `vimrc` you used to reproduce:
<!--
Use a *minimal* vimrc with other plugins disabled; do not link to a 2,000 line vimrc.
If this is not provided or is obviously incomplete, the issue may be unceremoniously closed.
-->
<!-- vimrc -->
<details><summary>vimrc</summary>
```vim
```
</details>
#### Vim version (first three lines from `:version`):
<!-- :version -->
#### Go version (`go version`):
<!-- go version -->
#### Go environment
<details><summary><code>go env</code> Output:</summary><br><pre>
<!-- go env -->
</pre></details>
#### gopls version
<details><summary><code>gopls version</code> Output:</summary><br><pre>
<!-- gopls version -->
</pre></details>

View File

@ -0,0 +1,11 @@
name: git checks
on: [pull_request]
jobs:
autosquash-commits-integrated:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2.0.0
- name: Block Fixup Commit Merge
uses: 13rac1/block-fixup-merge-action@v2.0.0

View File

@ -0,0 +1,60 @@
name: test
on: [push, pull_request]
jobs:
lint:
name: lint
runs-on: ubuntu-18.04
steps:
- name: set up python
uses: actions/setup-python@v2.1.4
with:
python-version: 3.6
- name: install vim-vint
run: |
python -m pip install --upgrade pip
pip install vim-vint pathlib
- name: checkout
uses: actions/checkout@v2.1.0
- name: install vim
run: $GITHUB_WORKSPACE/scripts/install-vim vim-8.2
- name: install tools
run: $GITHUB_WORKSPACE/scripts/install-tools vim-8.2
- name: lint
run: $GITHUB_WORKSPACE/scripts/lint vim-8.2
test:
name: test
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
go: ['1.17','1.18']
vim: ['vim-8.0', 'vim-8.2', 'nvim']
steps:
- name: setup Go
uses: actions/setup-go@v2.1.3
with:
go-version: ${{ matrix.go }}
- name: set up python
uses: actions/setup-python@v2.1.4
with:
python-version: 3.6
- name: install covimerage
run: |
python -m pip install --upgrade pip
pip install click==7.1.2 covimerage==0.2.1 codecov pathlib
- name: checkout
uses: actions/checkout@v2.1.0
- name: install vim
run: $GITHUB_WORKSPACE/scripts/install-vim ${{ matrix.vim }}
- name: install tools
run: $GITHUB_WORKSPACE/scripts/install-tools ${{ matrix.vim }}
- name: test
run: $GITHUB_WORKSPACE/scripts/test -c ${{ matrix.vim }}
- uses: codecov/codecov-action@v1
with:
# token is not required for public repos
#token: ${{ secrets.CODECOV_TOKEN }}
file: $GITHUB_WORKSPACE/coverage.xml
flags: unittests
name: vim-go
fail_ci_if_error: false