-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtelescope.lua
More file actions
39 lines (38 loc) · 1.16 KB
/
telescope.lua
File metadata and controls
39 lines (38 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---@type LazySpec
return {
-- Fuzzy finder and picker UI (files, grep, buffers, etc.)
{
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
-- Optional but recommended
{
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
},
-- Use Telescope as the UI for vim.ui.select / vim.ui.input
"nvim-telescope/telescope-ui-select.nvim",
},
version = "*",
cmd = { "Telescope" },
config = function()
require("telescope").setup({
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown({}),
},
},
pickers = {
buffers = {
ignore_current_buffer = false,
sort_lastused = true,
},
},
})
-- To get fzf loaded and working with telescope, you need to call
-- load_extension, somewhere after setup function:
require("telescope").load_extension("fzf")
require("telescope").load_extension("ui-select")
end,
},
}