summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-02-27 16:26:25 +0100
committerGitHub <noreply@github.com>2021-02-27 16:26:25 +0100
commitca92ec1a830a61a0b88fff925f2146ab46e0f7c9 (patch)
tree4d30266573d6a009280ba9c31348b9ea76f3daec /.github/workflows
parent84732d1d780f1aecb799502be97ec3a403066268 (diff)
fix: a lot of small things and adds more customization for caret (#554)
Attention: prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one. The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you. Feat: - prompt prefix does no longer always end with space - selection_caret configurable. Default: `> ` - result_prefix configurable. Default: ` ` - more actions for git_branches - <c-t> does track the branch - <c-r> does rebase branch - also added delete branch action but not configured. See readme on how to do that Fixes: - fix docgen ci - Better error for lsp_workspace_symbols - better formatting for CONTRIBUTING.md - move from systemlist to plenary.job - git branch now supports checkout on remote branches
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/docgen.yml31
1 files changed, 10 insertions, 21 deletions
diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml
index ec7d8c9..ecde5b3 100644
--- a/.github/workflows/docgen.yml
+++ b/.github/workflows/docgen.yml
@@ -16,12 +16,6 @@ jobs:
path: build
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
- - name: Restore cache for tree-sitter
- uses: actions/cache@v2
- with:
- path: _ts
- key: ${{ runner.os }}-ts-${{ hashFiles('todays-date') }}
-
- name: Prepare
run: |
test -d build || {
@@ -30,41 +24,36 @@ jobs:
chmod +x nvim.appimage
mv nvim.appimage ./build/nvim
}
- test -d _ts || {
- # Pining version. Not sure if we should actually do that
- mkdir -p _ts
- wget https://github.com/tree-sitter/tree-sitter/releases/download/0.17.3/tree-sitter-linux-x64.gz
- gzip -d tree-sitter-linux-x64
- chmod +x tree-sitter-linux-x64
- mv tree-sitter-linux-x64 ./_ts/tree-sitter
- }
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
+ git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
git clone --depth 1 https://github.com/tjdevries/tree-sitter-lua ~/.local/share/nvim/site/pack/vendor/start/tree-sitter-lua
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Build parser
run: |
# We have to build the parser every single time to keep up with parser changes
- export PATH="${PWD}/_ts/:${PATH}"
cd ~/.local/share/nvim/site/pack/vendor/start/tree-sitter-lua
mkdir -p build parser
- make build_parser
+ cc -o ./build/parser.so -I./src src/parser.c src/scanner.cc -shared -Os -lstdc++ -fPIC
ln -s ../build/parser.so parser/lua.so
- cd
+ cd -
- # inspired by nvim-lspconfigs
- name: Generating docs
+ run: |
+ export PATH="${PWD}/build/:${PATH}"
+ make docgen
+
+ # inspired by nvim-lspconfigs
+ - name: Update documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MSG: |
- [Actions] Generate Documentation
+ [docgen] Update doc/telescope.txt
skip-checks: true
run: |
- export PATH="${PWD}/build/:${PATH}"
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
- make docgen
git add doc/
# 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})