From 9385589aeb20aa9c01a21bd94ac4922bfd942570 Mon Sep 17 00:00:00 2001 From: antoine Date: Sun, 19 Apr 2026 10:14:19 +0200 Subject: [PATCH 1/3] fix: remove dashboard startup section (no lazy.nvim) --- plugins/options.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/options.nix b/plugins/options.nix index 3365419..a5b1aa3 100644 --- a/plugins/options.nix +++ b/plugins/options.nix @@ -12,6 +12,13 @@ registers = "unnamedplus"; }; + luaConfigRC.lazy-stats-shim = lib.nvim.dag.entryAfter ["globalsScript"] '' + -- Shim lazy.stats so snacks dashboard doesn't error without lazy.nvim + package.loaded["lazy.stats"] = { + stats = function() return { startuptime = 0, count = 0, loaded = 0 } end + } + ''; + luaConfigRC.options = lib.nvim.dag.entryAfter ["globalsScript"] '' vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 From 7c6161c6acc7e36fe81184921435d3a2cb66c216 Mon Sep 17 00:00:00 2001 From: antoine Date: Sun, 19 Apr 2026 10:16:10 +0200 Subject: [PATCH 2/3] Revert "fix: remove dashboard startup section (no lazy.nvim)" This reverts commit 9385589aeb20aa9c01a21bd94ac4922bfd942570. --- plugins/options.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/options.nix b/plugins/options.nix index a5b1aa3..3365419 100644 --- a/plugins/options.nix +++ b/plugins/options.nix @@ -12,13 +12,6 @@ registers = "unnamedplus"; }; - luaConfigRC.lazy-stats-shim = lib.nvim.dag.entryAfter ["globalsScript"] '' - -- Shim lazy.stats so snacks dashboard doesn't error without lazy.nvim - package.loaded["lazy.stats"] = { - stats = function() return { startuptime = 0, count = 0, loaded = 0 } end - } - ''; - luaConfigRC.options = lib.nvim.dag.entryAfter ["globalsScript"] '' vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 From 380ca690461c912a89f72d187bf95e229f5be553 Mon Sep 17 00:00:00 2001 From: antoine Date: Sun, 19 Apr 2026 12:05:14 +0200 Subject: [PATCH 3/3] feat: mini.files close on file open for l and enter --- plugins/ui.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/ui.nix b/plugins/ui.nix index 7cb41a9..35740b8 100644 --- a/plugins/ui.nix +++ b/plugins/ui.nix @@ -11,6 +11,21 @@ require("mini.icons").mock_nvim_web_devicons() ''; + luaConfigRC.mini-files-close-on-open = '' + vim.api.nvim_create_autocmd("User", { + pattern = "MiniFilesBufferCreate", + callback = function(args) + local map = function(key) + vim.keymap.set("n", key, function() + MiniFiles.go_in({ close_on_file = true }) + end, { buffer = args.data.buf_id }) + end + map("l") + map("") + end, + }) + ''; + binds.whichKey = { enable = true; setupOpts.delay = 300;