63 lines
1.3 KiB
Lua
63 lines
1.3 KiB
Lua
return {
|
|
{
|
|
'nvim-telescope/telescope.nvim', -- equivalent ctrl-p, fzf
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
},
|
|
config = function()
|
|
local actions = require('telescope.actions')
|
|
local builtin = require('telescope.builtin')
|
|
|
|
require('telescope').setup {
|
|
defaults = {
|
|
mappings = {
|
|
n = {
|
|
["q"] = actions.close
|
|
},
|
|
},
|
|
},
|
|
pickers = {
|
|
git_files = {
|
|
theme = 'dropdown',
|
|
}
|
|
},
|
|
}
|
|
|
|
vim.keymap.set('n', '<C-p>', function()
|
|
builtin.find_files({
|
|
hidden = true
|
|
})
|
|
end)
|
|
|
|
vim.keymap.set('n', ';r', function()
|
|
builtin.live_grep()
|
|
end)
|
|
|
|
vim.keymap.set('n', '\\\\', function()
|
|
builtin.buffers()
|
|
end)
|
|
|
|
vim.keymap.set('n', ';g', function()
|
|
builtin.git_status()
|
|
end)
|
|
|
|
vim.keymap.set('n', ';;', function()
|
|
builtin.resume()
|
|
end)
|
|
|
|
vim.keymap.set('n', ';e', function()
|
|
builtin.diagnostics()
|
|
end)
|
|
end,
|
|
},
|
|
{
|
|
"kelly-lin/telescope-ag", -- silver search with telescope
|
|
dependencies = {
|
|
"nvim-telescope/telescope.nvim"
|
|
},
|
|
config = function()
|
|
require('telescope').load_extension('ag')
|
|
end,
|
|
}
|
|
}
|