31 lines
849 B
Lua
31 lines
849 B
Lua
-- https://github.com/nvim-telescope/telescope.nvim
|
|
return {
|
|
"nvim-telescope/telescope.nvim",
|
|
branch = "0.1.x",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
|
"nvim-tree/nvim-web-devicons",
|
|
"folke/todo-comments.nvim",
|
|
},
|
|
config = function()
|
|
local telescope = require("telescope")
|
|
local actions = require("telescope.actions")
|
|
|
|
telescope.setup({
|
|
defaults = {
|
|
path_display = { "smart" },
|
|
mappings = {
|
|
i = {
|
|
["<C-k>"] = actions.move_selection_previous, -- move to prev result
|
|
["<C-j>"] = actions.move_selection_next, -- move to next result
|
|
["<C-q>"] = actions.send_selected_to_qflist, -- add to qflist
|
|
},
|
|
},
|
|
},
|
|
})
|
|
|
|
telescope.load_extension("fzf")
|
|
end,
|
|
}
|