From 1ebd5e5eab266da08996ad6215684445e44206f3 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 27 Oct 2025 12:43:24 +0100 Subject: [PATCH] adds commands to move between buffers --- modules/nvim/config/lua/plugins/which-key.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/nvim/config/lua/plugins/which-key.lua b/modules/nvim/config/lua/plugins/which-key.lua index 9df24d1..48dc1ad 100644 --- a/modules/nvim/config/lua/plugins/which-key.lua +++ b/modules/nvim/config/lua/plugins/which-key.lua @@ -14,15 +14,25 @@ return { wk.setup(opts) wk.add({ - { "o", group = "+open", mode = "n" }, - { "ot", ":e ~/notes/todo.txt", desc = "Open tasks", mode = "n" }, - { "od", ":80 vsplit | :VimwikiMakeDiaryNote", desc = "Open daily note", mode = "n" }, + { "b", group = "+buffer", mode = "n" }, { "bd", - "bd", + "bd!", desc = "Delete current buffer", mode = "n", }, + { + "bn", + "bn", + desc = "Move to next buffer", + mode = "n", + }, + { + "bd", + "bp", + desc = "Move to previous buffer", + mode = "n", + }, { "c", group = "+code", mode = "n" }, { "cr",