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")