@@ -10,3 +10,7 @@ indent_style = tab
|
|||||||
|
|
||||||
[*.vim]
|
[*.vim]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
|||||||
47
.github/workflows/build.yml
vendored
Normal file
47
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
name: build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Clone lush
|
||||||
|
run: git clone --depth 1 https://github.com/rktjmp/lush.nvim ~/.local/share/nvim/site/pack/zenbones/start/lush.nvim
|
||||||
|
|
||||||
|
- uses: rhysd/action-setup-vim@v1
|
||||||
|
with:
|
||||||
|
neovim: true
|
||||||
|
version: stable
|
||||||
|
|
||||||
|
- name: Setup git
|
||||||
|
run: |
|
||||||
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --local user.name "github-actions[bot]"
|
||||||
|
printf 'BUILD_BRANCH=bot/build/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout to build branch
|
||||||
|
run: git checkout -b ${BUILD_BRANCH}
|
||||||
|
|
||||||
|
- name: Run builder script
|
||||||
|
run: make
|
||||||
|
|
||||||
|
- name: Create PR
|
||||||
|
run: |
|
||||||
|
if ! [[ -z $(git status -s) ]]; then
|
||||||
|
git add autoload/lightline/colorscheme/ colors/ lua/lualine/ extras/
|
||||||
|
git commit -m "chore: rebuild artifacts"
|
||||||
|
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${BUILD_BRANCH}
|
||||||
|
gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${BUILD_BRANCH} || true
|
||||||
|
fi
|
||||||
68
.github/workflows/doc.yml
vendored
68
.github/workflows/doc.yml
vendored
@@ -1,43 +1,43 @@
|
|||||||
name: doc
|
name: doc
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
vimdocgen:
|
vimdocgen:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
|
printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout to vimdoc branch
|
- name: Checkout to vimdoc branch
|
||||||
run: git checkout -b ${VIMDOC_BRANCH}
|
run: git checkout -b ${VIMDOC_BRANCH}
|
||||||
|
|
||||||
- name: panvimdoc
|
- name: panvimdoc
|
||||||
uses: kdheepak/panvimdoc@v2.7.1
|
uses: kdheepak/panvimdoc@v2.7.1
|
||||||
with:
|
with:
|
||||||
# Output vimdoc project name
|
# Output vimdoc project name
|
||||||
vimdoc: zenbones
|
vimdoc: zenbones
|
||||||
pandoc: doc/zenbones.md
|
pandoc: doc/zenbones.md
|
||||||
description: "A collection of contrast-based vim/neovim colorschemes"
|
description: "A collection of contrast-based vim/neovim colorschemes"
|
||||||
version: "Vim v8.1 / Neovim 0.5.0"
|
version: "Vim v8.1 / Neovim 0.5.0"
|
||||||
- name: Create PR
|
- name: Create PR
|
||||||
run: |
|
run: |
|
||||||
if ! [[ -z $(git status -s) ]]; then
|
if ! [[ -z $(git status -s) ]]; then
|
||||||
git add doc/zenbones.txt
|
git add doc/zenbones.txt
|
||||||
git commit -m "chore: generated vimdoc"
|
git commit -m "chore: generated vimdoc"
|
||||||
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH}
|
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH}
|
||||||
gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true
|
gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -421,10 +421,10 @@ local function generate(p, opt)
|
|||||||
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
||||||
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
||||||
|
|
||||||
LspDiagnosticsSignError { DiagnosticSignError }, -- Used for "Error" signs in sign column
|
LspDiagnosticsSignError { base.DiagnosticSignError }, -- Used for "Error" signs in sign column
|
||||||
LspDiagnosticsSignWarning { DiagnosticSignWarn }, -- Used for "Warning" signs in sign column
|
LspDiagnosticsSignWarning { base.DiagnosticSignWarn }, -- Used for "Warning" signs in sign column
|
||||||
LspDiagnosticsSignInformation { DiagnosticSignInfo }, -- Used for "Information" signs in sign column
|
LspDiagnosticsSignInformation { base.DiagnosticSignInfo }, -- Used for "Information" signs in sign column
|
||||||
LspDiagnosticsSignHint { DiagnosticSignHint }, -- Used for "Hint" signs in sign column
|
LspDiagnosticsSignHint { base.DiagnosticSignHint }, -- Used for "Hint" signs in sign column
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
---@diagnostic enable: undefined-global
|
---@diagnostic enable: undefined-global
|
||||||
|
|||||||
@@ -421,10 +421,10 @@ local function generate(p, opt)
|
|||||||
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
||||||
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
||||||
|
|
||||||
LspDiagnosticsSignError { DiagnosticSignError }, -- Used for "Error" signs in sign column
|
LspDiagnosticsSignError { base.DiagnosticSignError }, -- Used for "Error" signs in sign column
|
||||||
LspDiagnosticsSignWarning { DiagnosticSignWarn }, -- Used for "Warning" signs in sign column
|
LspDiagnosticsSignWarning { base.DiagnosticSignWarn }, -- Used for "Warning" signs in sign column
|
||||||
LspDiagnosticsSignInformation { DiagnosticSignInfo }, -- Used for "Information" signs in sign column
|
LspDiagnosticsSignInformation { base.DiagnosticSignInfo }, -- Used for "Information" signs in sign column
|
||||||
LspDiagnosticsSignHint { DiagnosticSignHint }, -- Used for "Hint" signs in sign column
|
LspDiagnosticsSignHint { base.DiagnosticSignHint }, -- Used for "Hint" signs in sign column
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
---@diagnostic enable: undefined-global
|
---@diagnostic enable: undefined-global
|
||||||
|
|||||||
Reference in New Issue
Block a user