2024-01-14 23:03:03 +09:00
|
|
|
return {
|
|
|
|
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
|
|
config = function()
|
2024-01-17 11:21:41 +09:00
|
|
|
local actions = require("telescope.actions")
|
|
|
|
require('telescope').setup({
|
|
|
|
defaults = {
|
|
|
|
mappings = {
|
|
|
|
i = { ["<esc>"] = actions.close },
|
|
|
|
},
|
|
|
|
},
|
2024-01-17 11:23:14 +09:00
|
|
|
extensions = {
|
|
|
|
fzf = {
|
|
|
|
fuzzy = true,
|
|
|
|
override_generic_sorter = true,
|
|
|
|
override_file_sorter = true,
|
|
|
|
case_mode = "smart_case",
|
|
|
|
},
|
2024-01-17 11:21:41 +09:00
|
|
|
})
|
|
|
|
|
2024-01-14 23:03:03 +09:00
|
|
|
local builtin = require('telescope.builtin')
|
|
|
|
vim.keymap.set('n', '<leader>\'', builtin.marks, {})
|
|
|
|
vim.keymap.set('n', '<leader>.', builtin.find_files, {})
|
|
|
|
vim.keymap.set('n', '<leader>,.', builtin.find_files, {})
|
|
|
|
vim.keymap.set('n', '<leader>,/', builtin.live_grep, {})
|
|
|
|
vim.keymap.set('n', '<leader>,,', builtin.buffers, {})
|
|
|
|
vim.keymap.set('n', '<leader>,;', builtin.command_history, {})
|
|
|
|
vim.keymap.set('n', '<leader>,?', builtin.search_history, {})
|
2024-01-17 11:23:14 +09:00
|
|
|
|
|
|
|
require("telescope").load_extension('fzf')
|
2024-01-14 23:03:03 +09:00
|
|
|
end
|
|
|
|
}
|