Skip to content

Commit

Permalink
fix: some builtin functions missing in completion list (nvim-telescop…
Browse files Browse the repository at this point in the history
…e#2464)

if there is extension_list, then the builtin_list would be replaced/overriden. e.g. if there are 3 items in extension_list, then first 3 items in builtin_list would be replaced when you type
`:Telescope fi` and press tab to get completion list.
  • Loading branch information
jerrywang1981 authored and abelmul committed Jun 6, 2023
1 parent 46a5b00 commit 31a7e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ end, {
if n == 0 then
return vim.tbl_filter(function(val)
return vim.startswith(val, l[2])
end, vim.tbl_extend("force", builtin_list, extensions_list))
end, vim.tbl_flatten({builtin_list, extensions_list}))
end

if n == 1 then
Expand Down

0 comments on commit 31a7e66

Please sign in to comment.