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:
@@ -526,7 +526,7 @@ internal.help_tags = function(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local help_files = {}
|
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
|
for _, fullpath in ipairs(all_files) do
|
||||||
local file = utils.path_tail(fullpath)
|
local file = utils.path_tail(fullpath)
|
||||||
if file == "tags" then
|
if file == "tags" then
|
||||||
|
|||||||
Reference in New Issue
Block a user