From d95a8125bb4e7e57b23a20096f807310daa7dfc3 Mon Sep 17 00:00:00 2001 From: Jerry Wang Date: Sun, 23 Apr 2023 20:39:22 +0800 Subject: [PATCH] fix: some builtin functions missing in completion list (#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. --- plugin/telescope.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/telescope.lua b/plugin/telescope.lua index 0fa8c68..5259d3a 100644 --- a/plugin/telescope.lua +++ b/plugin/telescope.lua @@ -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