diff options
| author | William Boman <william@redwill.se> | 2025-05-19 07:56:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-19 07:56:31 +0200 |
| commit | 1d6730459c42f591602500da994f01ae43a97dbc (patch) | |
| tree | c78417dd383456d2ef8a00600375534d17a9cd45 /.github | |
| parent | chore: fix references to williamboman/mason.nvim (#542) (diff) | |
| download | mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.tar mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.tar.gz mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.tar.bz2 mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.tar.lz mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.tar.xz mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.tar.zst mason-lspconfig-1d6730459c42f591602500da994f01ae43a97dbc.zip | |
perf: host pre-compiled filetype mappings (#555)
Generating the filetype mappings by accessing `vim.lsp.config` turns out to be a bad idea because:
1) performance
2) some `lsp/` configurations in nvim-lspconfig execute code immediately (see angularls)
3) accessing `vim.lsp.config[server_name]` seems to populate `:checkhealth vim.lsp`
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/autogenerate.yml | 42 | ||||
| -rw-r--r-- | .github/workflows/selene.yml | 2 |
2 files changed, 43 insertions, 1 deletions
diff --git a/.github/workflows/autogenerate.yml b/.github/workflows/autogenerate.yml new file mode 100644 index 0000000..a6167ab --- /dev/null +++ b/.github/workflows/autogenerate.yml @@ -0,0 +1,42 @@ +name: Autogenerate code + +on: + workflow_dispatch: + schedule: + - cron: "0 10 * * *" + +jobs: + autogenerate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: v0.11.0 + + - name: make generate + run: make generate + + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.PAT }} + author: "William Botman <william+bot@redwill.se>" + committer: "William Botman <william+bot@redwill.se>" + add-paths: lua/mason-lspconfig + commit-message: "chore: update generated code" + branch: chore/generate + branch-suffix: short-commit-hash + delete-branch: true + labels: automerge + title: "chore: update generated code" + + - name: Enable Pull Request Automerge + if: steps.cpr.outputs.pull-request-operation == 'created' + uses: peter-evans/enable-pull-request-automerge@v2 + with: + token: ${{ secrets.PAT }} + pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} + merge-method: squash diff --git a/.github/workflows/selene.yml b/.github/workflows/selene.yml index fb87d50..1486c9c 100644 --- a/.github/workflows/selene.yml +++ b/.github/workflows/selene.yml @@ -16,5 +16,5 @@ jobs: with: # token is needed because the action allegedly downloads binary from github releases token: ${{ secrets.GITHUB_TOKEN }} - args: lua/ tests/ + args: lua/ tests/ scripts/ version: 0.25.0 |
