aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-07-26 09:50:54 +0100
committerGitHub <noreply@github.com>2023-07-26 09:50:54 +0100
commitfd089c8e50c211d7beae15dbc9492ae5a1a5f2e2 (patch)
treefca392972189b68ddeb65722463b464f4440024b /.github
parentb8b77820371978a5f937ccc0db356574ae33371b (diff)
downloadrneovim-fd089c8e50c211d7beae15dbc9492ae5a1a5f2e2.tar.gz
rneovim-fd089c8e50c211d7beae15dbc9492ae5a1a5f2e2.tar.bz2
rneovim-fd089c8e50c211d7beae15dbc9492ae5a1a5f2e2.zip
feat(lua): typing for vim.fn.* (#24473)
Problem: No LSP information for `vim.fn.*` Solution: Add meta file for `vim.fn.*`.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/api-docs.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml
index f083d32fce..432e91306c 100644
--- a/.github/workflows/api-docs.yml
+++ b/.github/workflows/api-docs.yml
@@ -1,14 +1,15 @@
# Check if any PR needs to run the autogenerate script
-name: Autogenerate API docs
+name: Autogenerate API docs and types
on:
pull_request:
paths:
- 'src/nvim/api/*.[ch]'
+ - 'src/nvim/eval.lua'
- 'runtime/lua/**.lua'
- 'runtime/doc/**'
jobs:
- regen-api-docs:
+ regen-api-docs-and-types:
runs-on: ubuntu-latest
permissions:
contents: write
@@ -28,11 +29,13 @@ jobs:
id: docs
run: |
python3 scripts/gen_vimdoc.py
+ ./scripts/gen_vimfn_types.lua
printf 'UPDATED_DOCS=%s\n' $([ -z "$(git diff)" ]; echo $?) >> $GITHUB_OUTPUT
- name: FAIL, PR has not committed doc changes
if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 }}
run: |
- echo "Job failed, run ./scripts/gen_vimdoc.py and commit your doc changes"
+ echo "Job failed, run ./scripts/gen_vimdoc.py and/or ./scripts/gen_vimfn_types.lua"
+ echo "and commit your doc changes"
echo "The doc generation produces the following changes:"
git diff --color --exit-code