From a8e0ec4b3b5c5437508acd571be05091e76c0e6f Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Thu, 11 Jan 2024 19:54:51 +0100 Subject: [PATCH] Add ui-select and fzf extensions --- after/plugin/telescope.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index c1db340..d48f718 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,3 +1,17 @@ +require("telescope").setup({ + extensions = { + ["ui-select"] = { + require("telescope.themes").get_dropdown({}), + }, + ["fzf"] = { + fuzzy = true, + override_generic_sorter = true, + override_file_sorter = true, + case_mode = "smart_case", + }, + }, +}) + local builtin = require("telescope.builtin") vim.keymap.set("n", "pf", builtin.find_files, { desc = "Find files" }) vim.keymap.set("n", "", "Telescope git_files", { desc = "Find git files" }) @@ -5,3 +19,6 @@ vim.keymap.set("n", "ps", function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) end, { desc = "Find string" }) vim.keymap.set("n", "vh", builtin.help_tags, { desc = "Find help tags" }) + +require("telescope").load_extension("ui-select") +require("telescope").load_extension("fzf")