mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-15 15:09:48 +00:00
mig packer to lazy and archive
Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
46
nvim/lua/plugins/telescope.lua
Normal file
46
nvim/lua/plugins/telescope.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
event = 'VeryLazy',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
},
|
||||
opts = {
|
||||
defaults = {
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
width = 0.75,
|
||||
height = 0.5,
|
||||
},
|
||||
},
|
||||
mappings = {
|
||||
i = {
|
||||
['<esc>'] = 'close',
|
||||
['<C-j>'] = 'move_selection_previous',
|
||||
['<C-k>'] = 'move_selection_next',
|
||||
['<C-l>'] = { '<Right>', type = 'command' },
|
||||
['<C-h>'] = { '<Left>', type = 'command' },
|
||||
['<C-f>'] = 'preview_scrolling_down',
|
||||
['<C-b>'] = 'preview_scrolling_up',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>ff',
|
||||
'<cmd>Telescope find_files<cr>',
|
||||
},
|
||||
{
|
||||
'<leader>fg',
|
||||
'<cmd>Telescope live_grep<cr>',
|
||||
},
|
||||
{
|
||||
'<leader>b',
|
||||
'<cmd>Telescope buffers<cr>',
|
||||
},
|
||||
{
|
||||
';',
|
||||
'<cmd>Telescope commands<cr>',
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user