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
This commit is contained in:
31
.github/workflows/docgen.yml
vendored
31
.github/workflows/docgen.yml
vendored
@@ -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 -
|
||||
|
||||
- name: Generating docs
|
||||
run: |
|
||||
export PATH="${PWD}/build/:${PATH}"
|
||||
make docgen
|
||||
|
||||
# inspired by nvim-lspconfigs
|
||||
- name: Generating docs
|
||||
- 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})
|
||||
|
||||
Reference in New Issue
Block a user