diff --git a/home/common/nvim/mini.lua b/home/common/nvim/mini.lua index 960c660..02b594b 100644 --- a/home/common/nvim/mini.lua +++ b/home/common/nvim/mini.lua @@ -12,6 +12,11 @@ require('mini.surround').setup() require('mini.splitjoin').setup() + -- require('mini.bufremove').setup() + local bufremove = require('mini.bufremove') + bufremove.setup() + vim.keymap.set('n', 'bd', bufremove.delete, opts("Delete")) + require('mini.files').setup() local oil_style = function() if not MiniFiles.close() then @@ -65,10 +70,10 @@ return MiniPick.builtin.grep_live(local_opts, opts) end vim.keymap.set('n', '/', "Pick grep_live_root", opts("Live Grep")) - vim.keymap.set('n', 'F', "Pick files", opts("Find Files in CWD")) - vim.keymap.set('n', 'ff', "Pick files_root", opts("Find Files")) - vim.keymap.set('n', 'fr', "Pick oldfiles", opts("Recent Files")) - vim.keymap.set('n', 'b', "Pick buffers", opts("Buffers")) + vim.keymap.set('n', 'F', "Pick files", opts("Find in CWD")) + vim.keymap.set('n', 'ff', "Pick files_root", opts("Find")) + vim.keymap.set('n', 'fr', "Pick oldfiles", opts("Recent")) + vim.keymap.set('n', 'bb', "Pick buffers", opts("Switch")) vim.keymap.set('n', 'd', "Pick diagnostics", opts("Diagnostics")) vim.keymap.set('n', '', "Pick buffers include_current=false", opts("Buffers")) vim.keymap.set('n', "'", "Pick resume", opts("Last Picker"))