I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

View File

@@ -0,0 +1,88 @@
name: linux_neovim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
include:
- name: neovim-v04-x64
os: ubuntu-latest
neovim_version: v0.4.4
allow_failure: false
- name: neovim-v05-x64
os: ubuntu-latest
neovim_version: v0.5.1
allow_failure: false
- name: neovim-nightly-x64
os: ubuntu-latest
neovim_version: nightly
allow_failure: true
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.allow_failure}}
steps:
- name: Install dependencies
shell: bash
run: |
# https://github.com/Zettlr/Zettlr/issues/3517
sudo apt-get install libfuse2
- uses: actions/checkout@v2
- name: Download neovim
shell: bash
run: |
mkdir -p ~/nvim/bin
curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim.appimage -o ~/nvim/bin/nvim
chmod u+x ~/nvim/bin/nvim
continue-on-error: ${{matrix.allow_failure}}
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v2
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v2
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Download test runner
uses: actions/checkout@v2
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Run tests
shell: bash
run: |
export PATH=~/nvim/bin:$PATH
export PATH=./vim-themis/bin:$PATH
export PATH=./bin:$PATH
export THEMIS_VIM=nvim
nvim --version
themis
continue-on-error: ${{matrix.allow_failure}}

View File

@@ -0,0 +1,88 @@
name: linux_vim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: [vim-v90-x64, vim-v82-x64, vim-v81-x64]
include:
- name: vim-v90-x64
os: ubuntu-latest
vim_version: 9.0.0250
glibc_version: 2.15
- name: vim-v82-x64
os: ubuntu-latest
vim_version: 8.2.0813
glibc_version: 2.15
- name: vim-v81-x64
os: ubuntu-latest
vim_version: 8.1.2414
glibc_version: 2.15
runs-on: ${{matrix.os}}
steps:
- name: Install dependencies
shell: bash
run: |
# https://github.com/Zettlr/Zettlr/issues/3517
sudo apt-get install libfuse2
- uses: actions/checkout@v2
- name: Download vim
shell: bash
run: |
mkdir -p ~/vim/bin
curl -L https://github.com/vim/vim-appimage/releases/download/v${{matrix.vim_version}}/GVim-v${{matrix.vim_version}}.glibc${{matrix.glibc_version}}-x86_64.AppImage -o ~/vim/bin/vim
chmod u+x ~/vim/bin/vim
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v2
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v2
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Download test runner
uses: actions/checkout@v2
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Run tests
shell: bash
run: |
export PATH=~/vim/bin:$PATH
export PATH=./vim-themis/bin:$PATH
export PATH=./bin:$PATH
export THEMIS_VIM=vim
# https://github.com/project-slippi/Ishiiruka/issues/323
# It was needed to detect the actual path of `libgmodule` via `ldconfig -p | grep libg`.
LD_PRELOAD=/lib/x86_64-linux-gnu/libgmodule-2.0.so vim --version
LD_PRELOAD=/lib/x86_64-linux-gnu/libgmodule-2.0.so themis

View File

@@ -0,0 +1,84 @@
name: mac_neovim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest]
name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
include:
- name: neovim-v04-x64
os: macos-latest
neovim_version: v0.4.4
allow_failure: false
- name: neovim-v05-x64
os: macos-latest
neovim_version: v0.5.1
allow_failure: false
- name: neovim-nightly-x64
os: macos-latest
neovim_version: nightly
allow_failure: true
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.allow_failure}}
steps:
- uses: actions/checkout@v2
- name: Download neovim
shell: bash
run: curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-macos.tar.gz -o ~/nvim.tar.gz
continue-on-error: ${{matrix.allow_failure}}
- name: Extract neovim
shell: bash
run: tar xzf ~/nvim.tar.gz -C ~/
continue-on-error: ${{matrix.allow_failure}}
- name: Download test runner
uses: actions/checkout@v2
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v2
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v2
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Run tests
shell: bash
run: |
export PATH=~/nvim-osx64/bin:$PATH
export PATH=./vim-themis/bin:$PATH
export PATH=./bin:$PATH
export THEMIS_VIM=nvim
nvim --version
themis
continue-on-error: ${{matrix.allow_failure}}

View File

@@ -0,0 +1,58 @@
name: mac_vim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install MacVim
shell: bash
run: brew install macvim
- name: Download test runner
uses: actions/checkout@v2
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v2
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v2
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Run tests
shell: bash
run: |
export PATH=./vim-themis/bin:$PATH
export PATH=./bin:$PATH
export THEMIS_VIM=vim
vim --version
themis

View File

@@ -0,0 +1,22 @@
name: reviewdog
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
vimlint:
name: runner / vint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: vint
uses: reviewdog/action-vint@v1
with:
github_token: ${{ secrets.github_token }}
level: error
reporter: github-pr-review

View File

@@ -0,0 +1,87 @@
name: windows_neovim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest]
name: [neovim-v04-x64, neovim-v05-x64, neovim-nightly-x64]
include:
- name: neovim-v04-x64
os: windows-latest
neovim_version: v0.4.4
neovim_arch: win64
allow_failure: false
- name: neovim-v05-x64
os: windows-latest
neovim_version: v0.5.1
neovim_arch: win64
allow_failure: false
- name: neovim-nightly-x64
os: windows-latest
neovim_version: nightly
neovim_arch: win64
allow_failure: true
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.allow_failure}}
steps:
- uses: actions/checkout@v2
- name: Download neovim
shell: PowerShell
run: Invoke-WebRequest -Uri https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-${{matrix.neovim_arch}}.zip -OutFile neovim.zip
continue-on-error: ${{matrix.allow_failure}}
- name: Extract neovim
shell: PowerShell
run: Expand-Archive -Path neovim.zip -DestinationPath $env:USERPROFILE
continue-on-error: ${{matrix.allow_failure}}
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v2
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v2
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Download test runner
uses: actions/checkout@v2
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Run tests
shell: cmd
run: |
SET PATH=%USERPROFILE%\Neovim\bin;%PATH%;
SET PATH=.\vim-themis\bin;%PATH%;
SET PATH=.\bin;%PATH%;
SET THEMIS_VIM=nvim
nvim --version
themis
continue-on-error: ${{matrix.allow_failure}}

View File

@@ -0,0 +1,87 @@
name: windows_vim
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VIM_LSP_GO_VERSION: '1.17'
VIM_LSP_GOPLS_VERSION: '0.7.3'
VIM_LSP_GOPLS_CACHE_VER: 1
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest]
name: [vim-v90-x64, vim-v82-x64, vim-v81-x64, vim-v80-x64]
include:
- name: vim-v90-x64
os: windows-latest
vim_version: 9.0.0000
vim_arch: x64
vim_ver_path: vim90
- name: vim-v82-x64
os: windows-latest
vim_version: 8.2.0813
vim_arch: x64
vim_ver_path: vim82
- name: vim-v81-x64
os: windows-latest
vim_version: 8.1.2414
vim_arch: x64
vim_ver_path: vim81
- name: vim-v80-x64
os: windows-latest
vim_version: 8.0.1567
vim_arch: x64
vim_ver_path: vim80
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: Download vim
shell: PowerShell
run: Invoke-WebRequest -Uri https://github.com/vim/vim-win32-installer/releases/download/v${{matrix.vim_version}}/gvim_${{matrix.vim_version}}_${{matrix.vim_arch}}.zip -OutFile vim.zip
- name: Extract vim
shell: PowerShell
run: Expand-Archive -Path vim.zip -DestinationPath $env:USERPROFILE
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v2
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v2
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
gopls version
mkdir bin
mv "$(which gopls)" ./bin/
env:
GO111MODULE: 'on'
- name: Download test runner
uses: actions/checkout@v2
with:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Run tests
shell: cmd
run: |
SET PATH=%USERPROFILE%\vim\${{matrix.vim_ver_path}};%PATH%;
SET PATH=.\vim-themis\bin;%PATH%;
SET PATH=.\bin;%PATH%;
vim --version
themis