aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Grieser <73286100+chrisgrieser@users.noreply.github.com>2025-04-14 16:43:17 +0200
committerGitHub <noreply@github.com>2025-04-14 07:43:17 -0700
commitaa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3 (patch)
treed17de7daed070bae4846bed2c441e5c39ab26b1c
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.tar
nvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.tar.gz
nvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.tar.bz2
nvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.tar.lz
nvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.tar.xz
nvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.tar.zst
nvim-lspconfig-aa49d068ae52e8e8ea4ee8908e5ae35c3c28b3c3.zip
fix(gh_actions_ls): workspace_required=true #3722
see https://github.com/neovim/nvim-lspconfig/pull/3713#issuecomment-2801407962 (Note that `workspace_required` requires nightly or the upcoming nvim 0.11.1)
-rw-r--r--lsp/gh_actions_ls.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lsp/gh_actions_ls.lua b/lsp/gh_actions_ls.lua
index 93849c8a..fd803b93 100644
--- a/lsp/gh_actions_ls.lua
+++ b/lsp/gh_actions_ls.lua
@@ -15,12 +15,14 @@
-- ```
return {
cmd = { 'gh-actions-language-server', '--stdio' },
- filetypes = { 'yaml' }, -- the `root_markers` prevent attaching to every yaml file
+ -- the `root_markers` with `workspace_required` prevent attaching to every yaml file
+ filetypes = { 'yaml' },
root_markers = {
'.github/workflows',
'.forgejo/workflows',
'.gitea/workflows',
},
+ workspace_required = true,
capabilities = {
workspace = {
didChangeWorkspaceFolders = {