diff options
| author | Mitchell Hanberg <mitch@mitchellhanberg.com> | 2025-01-13 13:10:21 -0500 |
|---|---|---|
| committer | Peter Lithammer <peter.lithammer@gmail.com> | 2025-01-13 19:16:20 +0100 |
| commit | 0913481440219390969ab56a3c33089679365ef7 (patch) | |
| tree | e3e9c510417364f8b0dad37bb6cac4dfee0698af /lua/lspconfig | |
| parent | docs: update configs.md (diff) | |
| download | nvim-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.lua | 2 |
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. |
