From 617dca4dc11231138eb880b7c79253c17c9720f9 Mon Sep 17 00:00:00 2001 From: Zohir Benghalem <116302048+kayuxx@users.noreply.github.com> Date: Sat, 9 Sep 2023 02:13:28 +0100 Subject: [PATCH] add fzf telescope extension to improve sorting performance (#2371) * add fzf telescope extension to improve sorting performance * add fzf config tbl to the default tlsc config --- lua/plugins/configs/telescope.lua | 10 +++++++++- lua/plugins/init.lua | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lua/plugins/configs/telescope.lua b/lua/plugins/configs/telescope.lua index 784fb19..91c1d3a 100644 --- a/lua/plugins/configs/telescope.lua +++ b/lua/plugins/configs/telescope.lua @@ -49,7 +49,15 @@ local options = { }, }, - extensions_list = { "themes", "terms" }, + extensions_list = { "themes", "terms", "fzf" }, + extensions = { + fzf = { + fuzzy = true, + override_generic_sorter = true, + override_file_sorter = true, + case_mode = "smart_case", + }, + }, } return options diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index e869340..a517851 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -229,7 +229,7 @@ local default_plugins = { { "nvim-telescope/telescope.nvim", - dependencies = "nvim-treesitter/nvim-treesitter", + dependencies = { "nvim-treesitter/nvim-treesitter", { "nvim-telescope/telescope-fzf-native.nvim", build = "make" } }, cmd = "Telescope", init = function() require("core.utils").load_mappings "telescope"