Neovim/lua/plugins/telescope.lua

36 lines
989 B
Lua
Raw Normal View History

2023-11-17 11:24:21 +00:00
return {
{
"nvim-telescope/telescope.nvim",
2024-02-23 18:23:02 +00:00
dependencies = {
"sharkdp/fd",
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
2024-03-26 10:23:47 +00:00
-- extensionsdiff
"jonarrien/telescope-cmdline.nvim",
2024-03-26 10:23:47 +00:00
"debugloop/telescope-undo.nvim",
2024-02-23 18:23:02 +00:00
},
2024-03-26 10:23:47 +00:00
tag = "0.1.6",
2023-11-17 11:24:21 +00:00
opts = {
defaults = {
layout_strategy = "horizontal",
2024-02-23 18:23:02 +00:00
layout_config = {
prompt_position = "top",
2024-02-23 18:23:02 +00:00
},
2023-11-17 11:24:21 +00:00
sorting_strategy = "ascending",
winblend = 0,
theme = "dropdown",
2023-11-17 11:24:21 +00:00
},
2024-02-23 18:23:02 +00:00
extensions = {
cmdline = {},
undo = {},
2024-03-26 10:23:47 +00:00
},
},
config = function(_, opts)
require("telescope").setup(opts)
2024-03-26 10:23:47 +00:00
require("telescope").load_extension("cmdline")
require("telescope").load_extension("undo")
end,
2023-11-17 11:24:21 +00:00
},
2024-02-23 18:23:02 +00:00
}