summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2026-02-08 20:23:58 +0100
committerSkladnayazebra <skladnayazebra@gmail.com>2026-02-08 20:23:58 +0100
commit564f4709cb8854b685ece8a5a80b92ede5655384 (patch)
tree7751db1d138ea0446e183b4ac248135ad0ac575c /nvim
parentcf2de0f9eefef9e0a99b034bfb64166f4a45490d (diff)
Add MiniFiles
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.lua2
-rw-r--r--nvim/lazy-lock.json2
-rw-r--r--nvim/lua/config/lazy.lua14
3 files changed, 16 insertions, 2 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index d9936b7..8550077 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -29,7 +29,7 @@ vim.keymap.set('n', '<leader>gl', ':Git log<CR>', { noremap = true, silent = tru
vim.keymap.set('n', '<leader>gL', ':0Gclog<CR>', { noremap = true, silent = true, desc = 'Git log: this file' })
vim.keymap.set('n', '<leader>ge', ':Gedit<CR>', { noremap = true, silent = true, desc = 'Git: return to worktree' })
-vim.keymap.set('n', '<leader>e', ':Ex<CR>', { noremap = true, silent = true })
+vim.keymap.set('n', '<leader>e', ':lua MiniFiles.open(vim.api.nvim_buf_get_name(0), false)<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<leader>aa', ':argadd<CR>:argdedupe<CR>', { noremap = true, silent = true, desc = 'Add to args' })
vim.keymap.set('n', '<leader>ad', ':argdelete<CR>', { noremap = true, silent = true, desc = 'Delete from args' })
vim.keymap.set('n', '<leader>lr', ':LspRestart<CR>', { noremap = true, silent = true, desc = 'LSP: restart server' })
diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json
index 6ffb84c..dda97f2 100644
--- a/nvim/lazy-lock.json
+++ b/nvim/lazy-lock.json
@@ -6,6 +6,8 @@
"gitsigns.nvim": { "branch": "main", "commit": "1ce96a464fdbc24208e24c117e2021794259005d" },
"gruvbox.nvim": { "branch": "main", "commit": "a472496e1a4465a2dd574389dcf6cdb29af9bf1b" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
+ "mini.files": { "branch": "main", "commit": "fafacfecdd6c5a66bb10d173a749f3c098e84498" },
+ "mini.icons": { "branch": "main", "commit": "efc85e42262cd0c9e1fdbf806c25cb0be6de115c" },
"nvim-lspconfig": { "branch": "master", "commit": "66fd02ad1c7ea31616d3ca678fa04e6d0b360824" },
"nvim-surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
index 0ec7277..7befc5c 100644
--- a/nvim/lua/config/lazy.lua
+++ b/nvim/lua/config/lazy.lua
@@ -60,7 +60,19 @@ require("lazy").setup({
{ "prettier/vim-prettier" },
{ "neovim/nvim-lspconfig" },
{ "b0o/schemastore.nvim" },
-
+ {
+ "nvim-mini/mini.files",
+ branch = "main",
+ dependencies = { "nvim-mini/mini.icons" },
+ config = function()
+ require('mini.files').setup({
+ mappings = {
+ close = '<leader>e',
+ go_in_plus = '<CR>',
+ }
+ })
+ end,
+ },
require("config.blink-cmp"),
-- when hitting Enter between brackets, create newline between with tab:
-- {