config-neovim/lua/plugins/telescope.lua
2024-08-27 00:07:16 +08:00

15 lines
576 B
Lua

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,
}