Skip to content

Commit

Permalink
feat(mini-files): replicate toggling behaviour of astronvim neotree (#…
Browse files Browse the repository at this point in the history
…926)

feat(mini.files): replicate toggling behaviour of astronvim neotree
  • Loading branch information
burgr033 committed Apr 29, 2024
1 parent 75e79ac commit c0718c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/astrocommunity/file-explorer/mini-files/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ return {
opts = {
mappings = {
n = {
["<Leader>e"] = { function() require("mini.files").open() end, desc = "Explorer" },
["<Leader>e"] = {
function()
if not require("mini.files").close() then require("mini.files").open() end
end,
desc = "Explorer",
},
},
},
},
Expand Down

0 comments on commit c0718c8

Please sign in to comment.