Add: Whichkey Groups

This commit is contained in:
Dominik Säume 2025-01-13 15:37:59 +01:00
parent 01b54c4487
commit e62017f9bb
2 changed files with 15 additions and 1 deletions

View file

@ -7,6 +7,17 @@ vim.g.mapleader = ' '
vim.keymap.set('n', '<Tab>', '>>')
vim.keymap.set('n', '<S-Tab>', '<<')
--[[ Groups ]]
K.GROUPS = {
{ '<leader>s', group = 'Session' },
{ '<leader>g', group = 'Git/Global' },
{ '<leader>o', group = 'Ollama' },
{ '<leader>f', group = 'File' },
{ '<leader>d', group = 'Debugger' },
{ '<leader>c', group = 'Code' },
{ '<leader>a', group = 'Angular' },
}
--[[ Focus Shade ]]
K.FOCUS_SHADE = {
UP = {

View file

@ -1,8 +1,11 @@
local K = require('core.keymap')
return {
'folke/which-key.nvim',
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
require('which-key').setup({})
local wk = require('which-key')
wk.add(K.GROUPS)
wk.setup({})
end,
}