优化搜索

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

View File

@ -2,9 +2,21 @@ return {
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.8", tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = {
{ "nvim-lua/plenary.nvim" },
},
},
{
"nvim-telescope/telescope.nvim",
dependencies = {
{
"nvim-telescope/telescope-live-grep-args.nvim",
version = "^1.0.0",
},
},
config = function() config = function()
require("telescope").setup({ local telescope = require("telescope")
telescope.setup({
defaults = { defaults = {
layout_strategy = "vertical", layout_strategy = "vertical",
layout_config = { layout_config = {
@ -14,7 +26,13 @@ return {
theme = "dropdown", theme = "dropdown",
}, },
}, },
extensions = {
live_grep_args = {
auto_quoting = true,
},
},
}) })
telescope.load_extension("live_grep_args")
end, end,
}, },
} }