fix(colorschemes): only display highlight group on enter #804
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: vimdoc | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
vimdocgen: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: date +%F > todays-date | |
- name: Restore cache for today's nightly. | |
uses: actions/cache@v3 | |
with: | |
path: build | |
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }} | |
- name: Install FUSE | |
run: sudo apt-get install -y libfuse2 | |
- name: Setup neovim nightly and install plugins | |
run: | | |
test -d build || { | |
mkdir -p build | |
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage | |
chmod +x nvim.appimage | |
mv nvim.appimage ./build/nvim | |
} | |
mkdir -p ~/.local/share/nvim/site/pack/vendor/start | |
git clone --depth 1 https://github.com/ibhagwan/ts-vimdoc.nvim ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim | |
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter | |
- name: Build parser | |
run: | | |
export PACKPATH=$HOME/.local/share/nvim/site | |
./build/nvim --headless -u ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim/scripts/init.lua -c "TSUpdateSync markdown" -c "TSUpdateSync markdown_inline" -c "qa" | |
- name: Generating docs | |
run: | | |
export PATH="${PWD}/build/:${PATH}" | |
export PACKPATH=$HOME/.local/share/nvim/site | |
./build/nvim --headless -u ~/.local/share/nvim/site/pack/vendor/start/ts-vimdoc.nvim/scripts/init.lua -c "lua require('ts-vimdoc').docgen({input_file='README.md', output_file='doc/fzf-lua.txt', project_name='fzf-lua', version='For Neovim >= 0.5.0'})" -c "qa" | |
- name: Commit changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COMMIT_MSG: | | |
[docgen] CI: autogenerate vimdoc | |
skip-checks: true | |
run: | | |
git config user.email "actions@github" | |
git config user.name "Github Actions" | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
git add doc/fzf-lua.txt | |
# Only commit and push if we have changes | |
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF}) |