dotfiles/.config/nvim/lua/tsousa/plugins/telescope.lua

30 lines
838 B
Lua

return {
"nvim-telescope/telescope.nvim",
event = "VimEnter",
dependencies = {
"nvim-telescope/telescope-ui-select.nvim",
"nvim-tree/nvim-web-devicons",
"nvim-lua/plenary.nvim",
},
config = function()
require("telescope").setup({
defaults = require("telescope.themes").get_ivy({
file_ignore_patterns = { "node_modules" },
}),
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown({
-- even more opts
}),
},
},
})
require("telescope").load_extension("ui-select")
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<leader>pf", builtin.find_files, {})
vim.keymap.set("n", "<leader>pg", builtin.live_grep, {})
vim.keymap.set("n", "<leader>gf", builtin.git_files, {})
vim.keymap.set("n", "<leader>vh", builtin.help_tags, {})
end,
}