Add Completion Window Options (#901)

* Add window.completion.side_padding and window.completion.col_offset

* add col_offset and side_padding options to config/window
This commit is contained in:
Cameron
2022-06-15 04:49:16 +02:00
committed by GitHub
parent 0e65333c7f
commit df6734aa01
4 changed files with 18 additions and 6 deletions

View File

@@ -90,6 +90,8 @@ return function()
completion = {
border = { '', '', '', '', '', '', '', '' },
winhighlight = 'Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None',
col_offset = 0,
side_padding = 1,
},
documentation = {
max_height = math.floor(WIDE_HEIGHT * (WIDE_HEIGHT / vim.o.lines)),

View File

@@ -6,6 +6,8 @@ window.bordered = function(opts)
border = opts.border or 'rounded',
winhighlight = opts.winhighlight or 'Normal:Normal,FloatBorder:Normal,CursorLine:Visual,Search:None',
zindex = opts.zindex or 1001,
col_offset = opts.col_offset or 0,
side_padding = opts.side_padding or 1
}
end