Add ui-select and fzf extensions
This commit is contained in:
parent
902912b0b8
commit
a8e0ec4b3b
@ -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")
|
local builtin = require("telescope.builtin")
|
||||||
vim.keymap.set("n", "<leader>pf", builtin.find_files, { desc = "Find files" })
|
vim.keymap.set("n", "<leader>pf", builtin.find_files, { desc = "Find files" })
|
||||||
vim.keymap.set("n", "<C-p>", "<cmd>Telescope git_files<cr>", { desc = "Find git files" })
|
vim.keymap.set("n", "<C-p>", "<cmd>Telescope git_files<cr>", { desc = "Find git files" })
|
||||||
@ -5,3 +19,6 @@ vim.keymap.set("n", "<leader>ps", function()
|
|||||||
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
||||||
end, { desc = "Find string" })
|
end, { desc = "Find string" })
|
||||||
vim.keymap.set("n", "<leader>vh", builtin.help_tags, { desc = "Find help tags" })
|
vim.keymap.set("n", "<leader>vh", builtin.help_tags, { desc = "Find help tags" })
|
||||||
|
|
||||||
|
require("telescope").load_extension("ui-select")
|
||||||
|
require("telescope").load_extension("fzf")
|
||||||
|
Loading…
Reference in New Issue
Block a user