aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig
diff options
context:
space:
mode:
authorMitchell Hanberg <mitch@mitchellhanberg.com>2025-01-13 13:10:21 -0500
committerPeter Lithammer <peter.lithammer@gmail.com>2025-01-13 19:16:20 +0100
commit0913481440219390969ab56a3c33089679365ef7 (patch)
treee3e9c510417364f8b0dad37bb6cac4dfee0698af /lua/lspconfig
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.tar
nvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.tar.gz
nvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.tar.bz2
nvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.tar.lz
nvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.tar.xz
nvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.tar.zst
nvim-lspconfig-0913481440219390969ab56a3c33089679365ef7.zip
fix(gh_actions_ls): correctly call util.root_pattern
I believe this is another case of #3513
Diffstat (limited to 'lua/lspconfig')
-rw-r--r--lua/lspconfig/configs/gh_actions_ls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/gh_actions_ls.lua b/lua/lspconfig/configs/gh_actions_ls.lua
index 6bdfa62b..c40c5e25 100644
--- a/lua/lspconfig/configs/gh_actions_ls.lua
+++ b/lua/lspconfig/configs/gh_actions_ls.lua
@@ -9,7 +9,7 @@ return {
-- files. (A nil root_dir and no single_file_support results in the LSP not
-- attaching.) For details, see #3558
root_dir = function(filename)
- return filename:find('/%.github/workflows/.+%.ya?ml') and util.root_pattern('.github') or nil
+ return filename:find('/%.github/workflows/.+%.ya?ml') and util.root_pattern('.github')(filename) or nil
end,
-- Disabling "single file support" is a hack to avoid enabling this LS for
-- every random yaml file, so `root_dir()` can control the enablement.