From 7f6a76edf6b5f89e25c5ed13533e3daaf4bde156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 28 Dec 2023 14:28:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(nvim):=20telescope-repo=20no?= =?UTF-8?q?t=20having=20an=20event=20to=20load?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lazy-lock.json | 2 +- .config/nvim/lazyvim.json | 3 +-- .../plugins/extras/editor/telescope/repo.lua | 23 +++++++++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 587f3b08..b1d7ac91 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -57,7 +57,7 @@ "multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "77d9f484b88fd380386b46ed9206e5374d69d9d8" }, "neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" }, - "neodev.nvim": { "branch": "main", "commit": "7d86c1d844b883e7bf0634af48c8ffcb2d4bb088" }, + "neodev.nvim": { "branch": "main", "commit": "8526ce7de23e04735827a4e3f78ff634880181c5" }, "neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" }, "neotest": { "branch": "master", "commit": "6aa6e4529a4a125b49c48541b97ba146ceee2441" }, "neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" }, diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index bb5150e3..7e37ecad 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -83,5 +83,4 @@ "NEWS.md": "2123" }, "version": 2 -} - +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/extras/editor/telescope/repo.lua b/.config/nvim/lua/plugins/extras/editor/telescope/repo.lua index 4ba314d9..bd6e0aa3 100644 --- a/.config/nvim/lua/plugins/extras/editor/telescope/repo.lua +++ b/.config/nvim/lua/plugins/extras/editor/telescope/repo.lua @@ -1,12 +1,17 @@ return { { "cljoly/telescope-repo.nvim", + event = "VeryLazy", dependencies = { - "airblade/vim-rooter", - init = function() - vim.g["rooter_cd_cmd"] = "lcd" - vim.g["rooter_silent_chdir"] = 1 - end, + { + "airblade/vim-rooter", + init = function() + vim.g["rooter_cd_cmd"] = "lcd" + vim.g["rooter_silent_chdir"] = 1 + end, + }, + { "nvim-telescope/telescope.nvim" }, + { "nvim-lua/plenary.nvim" }, }, opts = {}, config = function() @@ -19,7 +24,7 @@ return { "--no-ignore-vcs", }, search_dirs = { - "~/Repos", + "~/Repos/", }, }, }, @@ -38,7 +43,7 @@ return { "goolord/alpha-nvim", optional = true, opts = function(_, dashboard) - local button = dashboard.button("p", " " .. " Projects/Repos", "Telescope repo list ") + local button = dashboard.button("r", " " .. " Repos", "Telescope repo list") button.opts.hl = "AlphaButtons" button.opts.hl_shortcut = "AlphaShortcut" table.insert(dashboard.section.buttons.val, 4, button) @@ -50,9 +55,9 @@ return { opts = function(_, opts) local projects = { action = "Telescope repo list", - desc = " Projects/Repos", + desc = " Repos", icon = " ", - key = "p", + key = "r", } projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)