diff options
| author | Javier Lopez <graulopezjavier@gmail.com> | 2021-09-19 03:26:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-19 10:26:00 +0200 |
| commit | ca05f8955ce78ce8358734f08a009f11cbdae1ba (patch) | |
| tree | b646b91db8e164a7d0f26c3bfec0dee38854e1bd /lua | |
| parent | 2e7584f1cfdffb32bf26039a050cd2cf74ede4cd (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.lua | 2 |
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 |
