feat(which-key): add border

This commit is contained in:
Matthew Leong 2023-01-10 08:02:11 -08:00
parent 17201507eb
commit affdcbcde9
2 changed files with 14 additions and 1 deletions

View file

@ -73,7 +73,7 @@ opt.shortmess = opt.shortmess + { c = true }
-- perfomance -- perfomance
opt.redrawtime = 1500 opt.redrawtime = 1500
opt.timeoutlen = 250 opt.timeoutlen = 200
opt.ttimeoutlen = 10 opt.ttimeoutlen = 10
opt.updatetime = 100 opt.updatetime = 100

View file

@ -8,6 +8,19 @@ return {
-- your configuration comes here -- your configuration comes here
-- or leave it empty to use the default settings -- or leave it empty to use the default settings
-- refer to the configuration section below -- refer to the configuration section below
window = {
border = user_config.border, -- none, single, double, shadow
position = 'bottom', -- bottom, top
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]
padding = { 3, 2, 3, 2 }, -- extra window padding [top, right, bottom, left]
winblend = 20,
},
layout = {
height = { min = 4, max = 25 }, -- min and max height of the columns
width = { min = 20, max = 50 }, -- min and max width of the columns
spacing = 8, -- spacing between columns
align = 'center', -- align columns left, center or right
},
}) })
wk.register({ wk.register({