From b720dd5b85a47a757d5e8e7909af410809068ba1 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 18 Jan 2025 14:56:47 -0800 Subject: [PATCH] fix: fallback when mini-files is opened in ministarter --- lua/plugins/lz-spec.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lz-spec.lua b/lua/plugins/lz-spec.lua index 31856af..8e29dc5 100644 --- a/lua/plugins/lz-spec.lua +++ b/lua/plugins/lz-spec.lua @@ -293,7 +293,11 @@ return { }) vim.keymap.set("n", "e", function() - MiniFiles.open(vim.api.nvim_buf_get_name(0)) + if vim.bo.filetype == "ministarter" then + MiniFiles.open(nil, false) + else + MiniFiles.open(vim.api.nvim_buf_get_name(0)) + end end) vim.keymap.set("n", "fe", function() MiniFiles.open(nil, false)