aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = {