From 542613a0f58ccb3722c93b4b68677d7b5053fd57 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Thu, 12 Oct 2023 15:29:11 +0200 Subject: Add nvim --- public/nvim/.nvim/lua/plugins/core/telescope.lua | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 public/nvim/.nvim/lua/plugins/core/telescope.lua (limited to 'public/nvim/.nvim/lua/plugins/core/telescope.lua') diff --git a/public/nvim/.nvim/lua/plugins/core/telescope.lua b/public/nvim/.nvim/lua/plugins/core/telescope.lua new file mode 100644 index 0000000..367e20c --- /dev/null +++ b/public/nvim/.nvim/lua/plugins/core/telescope.lua @@ -0,0 +1,27 @@ +return { + { + "nvim-telescope/telescope.nvim", + config = function() + require("telescope").load_extension("file_browser") + end, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope-file-browser.nvim", + }, + }, + + { + "folke/which-key.nvim", + opts = function(_, opts) + if type(opts) == "table" then + opts.b = opts.b or {} + opts.f = opts.f or {} + + opts.b["b"] = { "Telescope buffers", "All" } + opts.f["f"] = { "Telescope find_files", "Find" } + opts.f["g"] = { "Telescope live_grep", "Grep" } + opts.f["b"] = { "Telescope file_browser", "Browse" } + end + end, + }, +} -- cgit v1.2.3