From 229d1b79d910267f0591859736010160b169dde0 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 24 Oct 2024 11:22:31 +0200 Subject: [PATCH 1/3] Remap: bD -> bd (buffer delete), add: bo (buffer delete others) --- lua/keymaps.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 06fbe28..aa8808c 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -67,7 +67,8 @@ vim.keymap.set('o', 'N', "'nN'[v:searchforward]", { expr = true, desc = 'Prev Se vim.keymap.set('n', '', 'bprevious', { desc = 'Prev Buffer' }) vim.keymap.set('n', '', 'bnext', { desc = 'Next Buffer' }) vim.keymap.set('n', 'bb', 'e #', { desc = 'Switch to Other Buffer' }) -vim.keymap.set('n', 'bD', ':bd', { desc = 'Delete Buffer and Window' }) +vim.keymap.set('n', 'bd', ':bd', { desc = 'Delete Buffer and Window' }) +vim.keymap.set('n', 'bo', '%bd|e#|bd#', { desc = 'Delete Other Buffers' }) -- Tabs vim.keymap.set('n', 'l', 'tablast', { desc = 'Last Tab' }) From 5adf6b5c0dc4e267395d9ab874cdf4beb5247b67 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 24 Oct 2024 11:22:59 +0200 Subject: [PATCH 2/3] Set wildignorecase (more sane command line completions) --- lua/options.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/options.lua b/lua/options.lua index ac0b9ed..47d998e 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -33,6 +33,9 @@ vim.opt.undofile = true vim.opt.ignorecase = true vim.opt.smartcase = true +-- Ignore case of cmdline (":e ju" results in ":e Justfile", for example) +vim.opt.wildignorecase = true + -- Keep signcolumn on by default vim.opt.signcolumn = 'yes' From 928eccdd6f7c8ff1009ed63b1f8a50b19d22586e Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 24 Oct 2024 11:23:21 +0200 Subject: [PATCH 3/3] Add mini.animate for simple animations to keep track of cursor better --- lua/plugins/mini.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index fe7ec4a..d68ba0b 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -25,6 +25,9 @@ return { -- Collection of various small independent plugins/modules -- Pair brackets, quotes, etc. require('mini.pairs').setup() + -- Animate common Neovim actions + require('mini.animate').setup() + -- Simple startup screen require('mini.starter').setup()