From 8e2d04365015032ca3db5d8eb0cc3c46990bab4e Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 12 Jan 2025 10:01:15 +0100 Subject: [PATCH] nvim: add mini.files --- home/common/nvim/init.lua | 1 + home/common/nvim/mini.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/home/common/nvim/init.lua b/home/common/nvim/init.lua index 258d834..8ef82a3 100644 --- a/home/common/nvim/init.lua +++ b/home/common/nvim/init.lua @@ -150,6 +150,7 @@ vim.keymap.set('n', 's', "Pick lsp scope='document_symbol'", op vim.keymap.set('n', 'S', "Pick lsp scope='workspace_symbol'", opts("Open workspace symbol picker")) vim.keymap.set("n", "ws", "s", opts("Horizontal split")) vim.keymap.set("n", "wv", "v", opts("Vertical split")) +vim.keymap.set("n", "", require('mini.files').open, opts("Open file manager")) vim.keymap.set('n', '', "Pick buffers include_current=false", opts("Buffers")) vim.keymap.set("n", "zz", "zt", { remap = true }) vim.keymap.set({ "n", "v" }, "y", '"+y', opts("Yank to clipboard")) diff --git a/home/common/nvim/mini.lua b/home/common/nvim/mini.lua index 215b734..a12b7cf 100644 --- a/home/common/nvim/mini.lua +++ b/home/common/nvim/mini.lua @@ -5,6 +5,7 @@ require('mini.bufremove').setup() require('mini.comment').setup() require('mini.diff').setup() require('mini.extra').setup() +require('mini.files').setup() require('mini.icons').setup() require('mini.jump').setup() require('mini.surround').setup()