From ca05f8955ce78ce8358734f08a009f11cbdae1ba Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Sun, 19 Sep 2021 03:26:00 -0500 Subject: [PATCH] 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. --- lua/telescope/builtin/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index ae3b10e..917d0a3 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -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