mirror of
https://github.com/neovim/nvim-lspconfig
synced 2025-03-11 04:27:36 +00:00
I believe this is another case of #3513
This commit is contained in:
parent
04e8eb54eb
commit
0913481440
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user