summaryrefslogtreecommitdiff
path: root/lua/custom/plugins/telescope.lua
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-04 18:48:24 -0500
committertdback <tyler@tdback.net>2024-12-04 18:48:24 -0500
commit3b2163b821f4dbf1003804b9b19fd276dc4bc350 (patch)
tree809a679142eae8e7d3b4d2b3cf1426416883a7f9 /lua/custom/plugins/telescope.lua
initial commit to new repo
Diffstat (limited to 'lua/custom/plugins/telescope.lua')
-rw-r--r--lua/custom/plugins/telescope.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/custom/plugins/telescope.lua b/lua/custom/plugins/telescope.lua
new file mode 100644
index 0000000..8593110
--- /dev/null
+++ b/lua/custom/plugins/telescope.lua
@@ -0,0 +1,17 @@
+return {
+ "nvim-telescope/telescope.nvim",
+ tag = "0.1.8",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ },
+ config = function()
+ require("telescope").setup({})
+
+ local builtin = require("telescope.builtin")
+ vim.keymap.set("n", "<leader>sf", builtin.find_files, { desc = "[s]earch [f]iles" })
+ vim.keymap.set("n", "<leader>sg", builtin.live_grep, { desc = "[s]earch by [g]rep" })
+ vim.keymap.set("n", "<leader>sw", builtin.grep_string, { desc = "[s]earch current [w]ord" })
+ vim.keymap.set("n", "<leader>sb", builtin.buffers, { desc = "[s]earch [b]uffers" })
+ vim.keymap.set("n", "<leader>sh", builtin.help_tags, { desc = "[s]earch [h]elp" })
+ end,
+}