Skip to content

feat(blink.cmp): use "auto_insert" for specific buf/win, otherwise use "preselect" #1032

feat(blink.cmp): use "auto_insert" for specific buf/win, otherwise use "preselect"

feat(blink.cmp): use "auto_insert" for specific buf/win, otherwise use "preselect" #1032

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
CARGO_INCREMENTAL: 0
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_NET_RETRY: 3
CARGO_TERM_COLOR: always
jobs:
commits:
name: Commits
if: ${{ github.ref != 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
typecheck:
name: Type check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: stevearc/nvim-typecheck-action@v2
with:
path: lua
configpath: ".luarc.json"
selene:
name: Selene
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: cargo-bins/cargo-binstall@main
- name: Selene
run: |
cargo binstall --no-confirm selene
selene --config selene.toml ./lua
code_format:
name: Code Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --config-path .stylua.toml ./lua
- name: Auto commit
if: ${{ github.ref != 'refs/heads/main' }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(pr): auto-commit"
ubuntu_installer:
name: Ubuntu Installer
runs-on: ubuntu-latest
steps:
- uses: Swatinem/rust-cache@v2
- uses: mozilla-actions/[email protected]
- name: Get branch
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Install lin.nvim
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
set -x
echo '${{ steps.extract_branch.outputs.branch }}'
export BRANCH_NAME=${{ steps.extract_branch.outputs.branch }}
git clone --single-branch --branch $BRANCH_NAME --depth=1 https://github.com/linrongbin16/lin.nvim ~/.nvim && cd ~/.nvim && bash -euxo pipefail ./install
macos_installer:
name: MacOS Installer
runs-on: macos-latest
steps:
- uses: Homebrew/actions/setup-homebrew@master
- uses: Swatinem/rust-cache@v2
- uses: mozilla-actions/[email protected]
- name: Get branch
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Install lin.nvim
shell: bash
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
set -x
echo '${{ steps.extract_branch.outputs.branch }}'
echo ${{ steps.extract_branch.outputs.branch }}
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
git clone --single-branch --branch ${{ steps.extract_branch.outputs.branch }} --depth=1 https://github.com/linrongbin16/lin.nvim ~/.nvim && cd ~/.nvim && bash -euxo pipefail ./install