diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index 7f35352b..24143251 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -46,6 +46,7 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" }, "mason-null-ls.nvim": { "branch": "main", "commit": "de19726de7260c68d94691afb057fa73d3cc53e7" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, + "mini.files": { "branch": "main", "commit": "6abe854f1410fc6aec69897a78b1db994c32d9c6" }, "mini.icons": { "branch": "main", "commit": "2d89252993fec829b24720097a687412d10f6c85" }, "neogit": { "branch": "master", "commit": "e0a8674ac6b6048e1e4d364645dc605ac789bc4a" }, "neovim-session-manager": { "branch": "master", "commit": "cbaebd92dce84e9ba63cb07d3199e5a19b204c1a" }, diff --git a/config/nvim/lua/core/mapping.lua b/config/nvim/lua/core/mapping.lua index 19081549..3116c148 100644 --- a/config/nvim/lua/core/mapping.lua +++ b/config/nvim/lua/core/mapping.lua @@ -38,7 +38,6 @@ end --}}} -- : normal mode{{{ -map("n", "e", "NvimTreeToggle", "Explorer") map("n", "w", "up", "Save") map("n", "q", "q", "Quit") map("n", "y", function() yank() end, "copy to clipboard") diff --git a/config/nvim/lua/plugins/init.lua b/config/nvim/lua/plugins/init.lua index fbea7f2c..3b042947 100644 --- a/config/nvim/lua/plugins/init.lua +++ b/config/nvim/lua/plugins/init.lua @@ -257,4 +257,25 @@ return { event = { "BufRead Cargo.toml" }, opts = {}, }, + + { + "echasnovski/mini.files", + keys = { + { + "e", + function() + if not MiniFiles.close() then + MiniFiles.open() + end + end, + desc = "File Explorer", + }, + }, + opts = { + mappings = { + synchronize = "w", + go_in_plus = "", + }, + }, + }, } diff --git a/config/nvim/lua/plugins/session.lua b/config/nvim/lua/plugins/session.lua index d572783c..5e44e3c8 100644 --- a/config/nvim/lua/plugins/session.lua +++ b/config/nvim/lua/plugins/session.lua @@ -7,12 +7,12 @@ local M = { } M.config = function() - vim.api.nvim_create_autocmd("User", { - pattern = "SessionLoadPost", - callback = vim.schedule_wrap(function() - pcall(require("nvim-tree.api").tree.toggle, false, true) - end), - }) + -- vim.api.nvim_create_autocmd("User", { + -- pattern = "SessionLoadPost", + -- callback = vim.schedule_wrap(function() + -- pcall(require("nvim-tree.api").tree.toggle, false, true) + -- end), + -- }) require("session_manager").setup { autoload_mode = require("session_manager.config").AutoloadMode.Disabled,