config-neovim/lua/plugins/telescope.lua

15 lines
576 B
Lua
Raw Normal View History

2024-08-26 16:00:04 +00:00
return {
'nvim-telescope/telescope.nvim',
branch = 'master',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function (_, opts)
require("telescope").setup(opts)
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
vim.keymap.set('n', '<leader>fk', builtin.keymaps, {})
end,
}