fix: fallback when mini-files is opened in ministarter

This commit is contained in:
Youwen Wu 2025-01-18 14:56:47 -08:00
parent fde1120b8d
commit b720dd5b85
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -293,7 +293,11 @@ return {
})
vim.keymap.set("n", "<leader>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", "<leader>fe", function()
MiniFiles.open(nil, false)