rajvatsal 23e69634da feat(plugins): Add file tree, Enable Lazy loading
I've tried to lazy load most the plugins to improve start up time.
It has been greatly reduced, from more than 600ms to just around 100ms

Bug: Line that shows up when you are inside a block(block-line) doesn't
have color.
2024-01-09 16:53:14 +05:30

26 lines
1.0 KiB
Lua

return {
-- Useful plugin to show you pending keybinds.
'folke/which-key.nvim',
opts = {},
event = 'VeryLazy',
config = function()
-- document existing key chains
require('which-key').register {
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
}
-- register which-key VISUAL mode
-- required for visual <leader>hs (hunk stage) to work
require('which-key').register({
['<leader>'] = { name = 'VISUAL <leader>' },
['<leader>h'] = { 'Git [H]unk' },
}, { mode = 'v' })
end
}