summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorJavier Lopez <graulopezjavier@gmail.com>2021-09-19 03:26:00 -0500
committerGitHub <noreply@github.com>2021-09-19 10:26:00 +0200
commitca05f8955ce78ce8358734f08a009f11cbdae1ba (patch)
treeb646b91db8e164a7d0f26c3bfec0dee38854e1bd /lua
parent2e7584f1cfdffb32bf26039a050cd2cf74ede4cd (diff)
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.
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/internal.lua2
1 files changed, 1 insertions, 1 deletions
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