优化搜索

This commit is contained in:
LingZhaoHui 2024-06-28 22:33:49 +08:00
parent 24fba9303b
commit d31c683823
Signed by: zeekling
GPG Key ID: D96E4E75267CA2CC

View File

@ -3,7 +3,18 @@ return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.8", tag = "0.1.8",
dependencies = { dependencies = {
{ "nvim-lua/plenary.nvim" }, {
"nvim-lua/plenary.nvim",
{
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
cond = function()
return vim.fn.executable("make") == 1
end,
},
"nvim-telescope/telescope-ui-select.nvim",
"nvim-tree/nvim-web-devicons",
},
}, },
}, },
{ {
@ -30,9 +41,14 @@ return {
live_grep_args = { live_grep_args = {
auto_quoting = true, auto_quoting = true,
}, },
["ui-select"] = {
require("telescope.themes").get_dropdown(),
},
}, },
}) })
telescope.load_extension("live_grep_args") telescope.load_extension("live_grep_args")
pcall(require("telescope").load_extension, "fzf")
pcall(require("telescope").load_extension, "ui-select")
end, end,
}, },
} }