45 lines
1,011 B
Lua
45 lines
1,011 B
Lua
local user_config = require('cosmic.core.user')
|
|
return {
|
|
{ -- color scheme
|
|
'folke/which-key.nvim',
|
|
config = function()
|
|
local wk = require('which-key')
|
|
wk.setup({
|
|
-- your configuration comes here
|
|
-- or leave it empty to use the default settings
|
|
-- refer to the configuration section below
|
|
})
|
|
|
|
wk.register({
|
|
['<leader>'] = {
|
|
b = {
|
|
name = '+buffer',
|
|
},
|
|
c = {
|
|
name = '+quickfix',
|
|
},
|
|
f = {
|
|
name = '+file',
|
|
},
|
|
h = {
|
|
name = '+gitsigns',
|
|
t = {
|
|
name = '+toggle',
|
|
},
|
|
},
|
|
g = {
|
|
name = '+goto',
|
|
},
|
|
s = {
|
|
name = '+session',
|
|
},
|
|
t = {
|
|
name = '+tab',
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
event = 'VeryLazy',
|
|
enabled = not vim.tbl_contains(user_config.disable_builtin_plugins, 'which-key'),
|
|
},
|
|
}
|