include i3 and nvim configuration in the central repository, rather than keep them in their seperate respective ones.
This commit is contained in:
51
.config/nvim/lua/plugin/which-key.lua
Normal file
51
.config/nvim/lua/plugin/which-key.lua
Normal file
@@ -0,0 +1,51 @@
|
||||
---@type LazySpec
|
||||
return { { -- displays pending keybinds, helps with remembering keybinds
|
||||
'folke/which-key.nvim',
|
||||
event = 'VeryLazy',
|
||||
---@module 'which-key'
|
||||
---@type wk.Opts
|
||||
opts = {
|
||||
delay = 0, -- delay in MS between pressing a key and opening which-key
|
||||
icons = {
|
||||
mappings = true,
|
||||
keys = {
|
||||
Up = '',
|
||||
Down = '',
|
||||
Left = '',
|
||||
Right = '',
|
||||
C = '',
|
||||
M = '',
|
||||
D = '',
|
||||
S = '',
|
||||
CR = '',
|
||||
Esc = '',
|
||||
ScrollWheelUp = '',
|
||||
ScrollWheelDown = '',
|
||||
NL = '',
|
||||
BS = '',
|
||||
Space = '',
|
||||
Tab = '',
|
||||
F1 = '<F1>',
|
||||
F2 = '<F2>',
|
||||
F3 = '<F3>',
|
||||
F4 = '<F4>',
|
||||
F5 = '<F5>',
|
||||
F6 = '<F6>',
|
||||
F7 = '<F7>',
|
||||
F8 = '<F8>',
|
||||
F9 = '<F9>',
|
||||
F10 = '<F10>',
|
||||
F11 = '<F11>',
|
||||
F12 = '<F12>',
|
||||
},
|
||||
},
|
||||
spec = { -- document the key chains we know about
|
||||
{ '<leader>g', group = 'git' },
|
||||
{ '<leader>s', group = 'search' },
|
||||
{ '<leader>t', group = 'toggle' },
|
||||
{ '<leader>w', group = 'windows' },
|
||||
{ '<leader>l', group = 'lsp' },
|
||||
{ '<leader>wc', group = 'close' },
|
||||
},
|
||||
},
|
||||
} }
|
||||
Reference in New Issue
Block a user