2024-02-15 11:13:37 +00:00
|
|
|
return {
|
2024-03-05 06:54:50 +00:00
|
|
|
{
|
|
|
|
"nvim-telescope/telescope.nvim",
|
|
|
|
dependencies = { { "nvim-lua/popup.nvim" }, { "nvim-lua/plenary.nvim" } },
|
|
|
|
config = function()
|
|
|
|
require("telescope").setup {}
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
local option = { noremap = true, silent = true }
|
2024-02-15 11:13:37 +00:00
|
|
|
|
2024-03-05 06:54:50 +00:00
|
|
|
local keys = require "custom_keys"
|
|
|
|
local builtin = require "telescope.builtin"
|
|
|
|
vim.keymap.set("n", keys.find_files, builtin.find_files, option)
|
|
|
|
vim.keymap.set("n", keys.live_grep, builtin.live_grep, option)
|
|
|
|
vim.keymap.set("n", keys.search_cursor, builtin.grep_string, option)
|
|
|
|
vim.keymap.set("n", keys.find_buffer, builtin.buffers, option)
|
|
|
|
end,
|
|
|
|
},
|
2024-02-15 11:13:37 +00:00
|
|
|
}
|