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