151 Commits

Author SHA1 Message Date
dependabot[bot]
bedca8b426
ci: bump JohnnyMorganz/stylua-action from 4 to 5 (#4378)
Bumps [JohnnyMorganz/stylua-action](https://github.com/johnnymorganz/stylua-action) from 4 to 5.
- [Release notes](https://github.com/johnnymorganz/stylua-action/releases)
- [Commits](https://github.com/johnnymorganz/stylua-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: JohnnyMorganz/stylua-action
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-06 19:42:19 -04:00
Justin M. Keyes
d2782331cc
ci: disable gen-annotations in forks #4366
Problem:
gen-annotations runs on PRs.

Solution:
- Check the org + repo name.
- Trigger on "master" branch only.

related: d7c25c54406af9483edeab7e783d01f80e4f05e5 #4357
2026-03-31 16:34:06 -04:00
Justin M. Keyes
97774019cb fix(ci): avoid yucky "chore" type 2026-03-27 13:19:40 +01:00
Justin M. Keyes
5cce86ed4d
fix(ci): retry generator jobs #4359
Problem:
docgen fails if gen-annotations pushes before it:

    [master c2804a4] docs: update configs.md skip-checks: true
     2 files changed, 24 insertions(+), 20 deletions(-)
    To https://github.com/neovim/nvim-lspconfig
     ! [rejected]        master -> master (fetch first)
    error: failed to push some refs to 'https://github.com/neovim/nvim-lspconfig'
    hint: Updates were rejected because the remote contains work that you do not
    hint: have locally. This is usually caused by another repository pushing to

Solution:
If push fails, rebase and retry. The two workflows touch disjoint files
so the rebase should alway resolve.
2026-03-27 07:36:28 -04:00
HyBer
0624a7434c
feat(stylelint)!: migrate to stylelint-language-server #4351
stylelint now has an official LS:
[@stylelint/language-server](https://github.com/stylelint/vscode-stylelint/tree/main/packages/language-server)
2026-03-26 05:54:19 -04:00
Justin M. Keyes
d7c25c5440
ci: disable docgen in forks #4357
Problem:
docgen runs on PRs:
https://github.com/neovim/nvim-lspconfig/pull/4351#issuecomment-4114995138

Solution:
Check the org + repo name.
2026-03-25 08:22:53 -04:00
Yi Ming
89fd0361b3 docs: apply auto-generated annotations to LSP configs 2026-03-13 23:39:05 +08:00
Yi Ming
6b05a26b30 ci: auto-generate annotations 2026-03-13 23:36:10 +08:00
Yi Ming
67bd0e6c9e feat: auto-generate annotations for LSP settings 2026-03-13 22:45:20 +08:00
dependabot[bot]
32534d548a
ci: bump actions/checkout from 5 to 6 (#4205)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-20 14:56:46 -08:00
Justin M. Keyes
f54cc14a3d
fix(docs): handle config errors, document rename #4192
Problem:
If a config throws an error it fails the entire doc generation.

Solution:
Handle config error in docgen. Unfortunately, this doesn't show the
error message, it shows:

    loop or previous error loading module 'lsp.volar'

instead of the actual `error('…')` message.

So meanwhile, document the current deprecation/rename pattern and use
`vim.notify()` instead.
2025-11-16 10:25:25 -08:00
Justin M. Keyes
a7f856906f docs: bug report template 2025-11-15 15:58:42 -05:00
Justin M. Keyes
1e9c9b514f fix(eslint.lua): nonsense passed to list_extend() 2025-11-14 16:18:40 -05:00
Justin M. Keyes
c1c9e71f78 ci: retreat to luals
idk how to make this error stop
though I did read: https://github.com/EmmyLuaLs/emmylua-analyzer-rust/issues/29

    error: undefined global variable: vim [undefined-global]
      --> lua/lspconfig/configs/taplo.lua:6:29

      5 |     root_dir = function(fname)
      6 |       return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
      7 |     end,
2025-11-14 01:11:49 -05:00
Justin M. Keyes
2d113e6c02 ci: emmylua
- Introduce emmylua CI job to type-check code.
- Drop old analyzers that haven't reported anything useful in a long
  time and are redundant with luals/emmylua.
2025-11-14 00:14:19 -05:00
dependabot[bot]
2c1ebfe45b
ci: bump leafo/gh-actions-luarocks from 5 to 6 (#4096)
Bumps [leafo/gh-actions-luarocks](https://github.com/leafo/gh-actions-luarocks) from 5 to 6.
- [Release notes](https://github.com/leafo/gh-actions-luarocks/releases)
- [Commits](https://github.com/leafo/gh-actions-luarocks/compare/v5...v6)

---
updated-dependencies:
- dependency-name: leafo/gh-actions-luarocks
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-24 14:46:45 -07:00
dependabot[bot]
87b76911d1
ci: bump leafo/gh-actions-lua from 11 to 12 (#4097)
Bumps [leafo/gh-actions-lua](https://github.com/leafo/gh-actions-lua) from 11 to 12.
- [Release notes](https://github.com/leafo/gh-actions-lua/releases)
- [Commits](https://github.com/leafo/gh-actions-lua/compare/v11...v12)

---
updated-dependencies:
- dependency-name: leafo/gh-actions-lua
  dependency-version: '12'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-24 14:46:20 -07:00
Michele Sorcinelli
386231e6b7
fix(pyright): command :LspPyrightOrganizeImports fails #3971
Problem:
The `pyright.organizeimports` is private, so client:exec_cmd()
fails because it refuses to run commands that are not advertised
as capabilities.

Solution:
Call client.request() to side-step the check in client:exec_cmd().
YOLO
2025-08-30 17:50:16 -07:00
Justin M. Keyes
7b5253c863
ci(lint): require type annotation #4034 2025-08-24 20:35:19 -07:00
dependabot[bot]
45ff191404
ci: bump actions/checkout from 4 to 5 (#3994)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 13:44:24 -07:00
Justin M. Keyes
8475898082 ci: allows "workspace/executeCommand" in eslint config
Problem:
client:exec_cmd() does not support synchronous invocation. https://github.com/neovim/nvim-lspconfig/pull/3876

Solution:
Special-case eslint in the linter.
2025-06-02 12:05:29 +02:00
Justin M. Keyes
88d0824d85
ci: check legacy configs *last* #3797
Sometimes we want to make an exception for some bug fixes.
In that case, we want all the *other* lint checks to run.
2025-04-27 15:49:41 -07:00
Justin M. Keyes
b8755e3ac9
ci(lint): migrate from single_file_support #3789 2025-04-26 14:46:16 -07:00
Justin M. Keyes
c48fac0936
ci: cleanup #3782 2025-04-26 06:24:07 -07:00
Justin M. Keyes
85e09220a8
ci: check legacy configs, drop "comment" #3781
- Disallow adding new legacy configs.
- Drop the "comment" CI job. It is over-engineered, and adds redundant comments on PRs.
2025-04-26 06:01:04 -07:00
Justin M. Keyes
af34737b3a
refactor: deprecate util.validate_bufnr() 2025-04-23 06:50:22 -07:00
Justin M. Keyes
79c12bc6e7 refactor: deprecate util.path.search_ancestors() 2025-04-23 15:08:14 +02:00
Justin M. Keyes
ae74b95c98 refactor: deprecate util functions 2025-04-23 14:16:00 +02:00
Justin M. Keyes
5aa0b750f5
ci(lint): deprecate util.path.is_descendant() on Nvim 0.11+ #3766 2025-04-23 04:48:12 -07:00
Justin M. Keyes
d345896549
ci(lint): check @brief docstring placement #3762 2025-04-22 05:44:50 -07:00
Justin M. Keyes
44ba712bc3
ci(lint): use client:exec_cmd() #3755
Use `client:exec_cmd()` instead of calling
`request("workspace/executeCommand")` directly.
2025-04-21 13:43:00 -07:00
Justin M. Keyes
0e29bf5ed6 ci(lint): enforce "Lsp" command name prefix 2025-04-21 18:37:46 +02:00
Chris Bandy
4ea9083b6d
refactor: replace vim.loop with vim.uv #3703
The former is deprecated in neovim 0.10. Remove the check added in
9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.

See: https://github.com/neovim/neovim/blob/v0.10.0/runtime/doc/deprecated.txt#L55
2025-04-10 15:48:31 -07:00
Justin M. Keyes
96cfcfde42
refactor: deprecate get_active_client_by_name #3697 2025-04-05 17:17:35 -07:00
Justin M. Keyes
3dbc4a61e5
refactor: deprecate util.get_lsp_clients #3694 2025-04-05 16:29:56 -07:00
Justin M. Keyes
ed4dff80c0
feat: require Nvim 0.10+ #3692 2025-04-05 15:16:20 -07:00
dundargoc
ff6471d4f8 ci: cancel old jobs on PR update
Closes: https://github.com/neovim/nvim-lspconfig/issues/3669
2025-03-30 18:34:31 +02:00
dependabot[bot]
a3f8422b75 ci: bump leafo/gh-actions-luarocks from 4 to 5
Bumps [leafo/gh-actions-luarocks](https://github.com/leafo/gh-actions-luarocks) from 4 to 5.
- [Release notes](https://github.com/leafo/gh-actions-luarocks/releases)
- [Commits](https://github.com/leafo/gh-actions-luarocks/compare/v4...v5)

---
updated-dependencies:
- dependency-name: leafo/gh-actions-luarocks
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-28 23:46:34 +01:00
dependabot[bot]
d793c5cb02 ci: bump leafo/gh-actions-lua from 10 to 11
Bumps [leafo/gh-actions-lua](https://github.com/leafo/gh-actions-lua) from 10 to 11.
- [Release notes](https://github.com/leafo/gh-actions-lua/releases)
- [Commits](https://github.com/leafo/gh-actions-lua/compare/v10...v11)

---
updated-dependencies:
- dependency-name: leafo/gh-actions-lua
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-27 22:41:50 +01:00
dundargoc
d9fbdafd80 build: remove docgen.sh
Instead, generate documentation by running the `docgen.lua` executable.
2025-01-21 15:45:44 +01:00
dundargoc
9742171ab9 ci: use the head ref when checking out
Otherwise the action will default to githubs own merge branch which
doesn't follow the actual git history.
2025-01-21 15:38:55 +01:00
dundargoc
c580f34bc5 refactor!: remove public interface of util.path.traverse_parents
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-12-23 14:06:42 +01:00
dundargoc
9204642002 refactor: deprecate util.path.iterate_parents
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-12-22 14:44:02 +01:00
dundargoc
45c5095097 refactor: deprecate util.path.join
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-12-21 16:10:35 +01:00
dundargoc
12d163c5c2 refactor: deprecate util.find_git_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-12-14 17:24:12 +01:00
dundargoc
f675f8c430 refactor: deprecate util.find_package_json_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-12-13 14:31:20 +01:00
dundargoc
19626a3a44 refactor: deprecate util.find_node_modules_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-12-08 18:32:42 +01:00
dundargoc
9b89ba5f15 refactor: replace all instances of vim.uv with vim.loop
We still support neovim 0.9 currently, so we can't use vim.uv. Also add
a check so we don't accidentally reintroduce it.
2024-12-02 11:12:18 +01:00
dundargoc
e869c7e6af refactor: deprecate util.find_mercurial_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
2024-11-29 12:17:35 +01:00
dundargoc
6a5ed22255
refactor: deprecate util.path.is_dir #3475
Work on https://github.com/neovim/nvim-lspconfig/issues/2079
2024-11-28 14:39:12 -08:00