fix(builtin): internal.help_tags not finding all tags (#1258)

After changes on &rtp in neovim/neovim it's neccessary to use
`nvim_get_runtime_file` to actually find all the runtime files.
This commit is contained in:
Javier Lopez
2021-09-19 03:26:00 -05:00
committed by GitHub
parent 2e7584f1cf
commit ca05f8955c

View File

@@ -526,7 +526,7 @@ internal.help_tags = function(opts)
end
local help_files = {}
local all_files = vim.fn.globpath(vim.o.runtimepath, "doc/*", 1, 1)
local all_files = vim.api.nvim_get_runtime_file("doc/*", true)
for _, fullpath in ipairs(all_files) do
local file = utils.path_tail(fullpath)
if file == "tags" then