From ff0131d0e6ac931c6d78e9173a32be4b9a5f4ba1 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Mon, 10 Jun 2024 00:58:38 +0530 Subject: [PATCH] add telescope --- lua/plugins/telescope.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lua/plugins/telescope.lua diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..7b41ab9 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,27 @@ +local Plugin = { "nvim-telescope/telescope.nvim" } +Plugin.branch = "0.1.x" + +Plugin.dependencies = { + { "nvim-lua/plenary.nvim" }, + { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + enabled = true, + }, +} + +Plugin.cmd = { "Telescope" } + +Plugin.keys = { + { "", "Telescope buffers", desc = "Find buffer" }, + { "ff", "Telescope find_files", desc = "Find files" }, + { "fg", "Telescope git_files", desc = "Find files in git" }, + { "fp", "Telescope live_grep", desc = "Find text recursively" }, + { "fs", "Telescope current_buffer_fuzzy_find", desc = "Find text in current buffer" }, +} + +function Plugin.config() + require("telescope").load_extension("fzf") +end + +return Plugin