Add debugging, keymaps for tests and which-key

This commit is contained in:
Zam Kokott
2025-12-04 08:49:57 +00:00
parent 6d7b993478
commit 6073938c44
5 changed files with 150 additions and 19 deletions

27
lua/plugins/which-key.lua Normal file
View File

@@ -0,0 +1,27 @@
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
config = function()
local wk = require("which-key")
wk.add({
{ "<leader>d", group = "Debug" },
{ "<leader>f", group = "Files" },
{ "<leader>t", group = "Test" },
{ "<leader>c", group = "Code" },
})
end
}