feat: add border and borderchars

This commit is contained in:
TJ DeVries
2020-09-10 12:00:29 -04:00
parent fe7a7b4657
commit a9ffc18830
2 changed files with 5 additions and 4 deletions

View File

@@ -13,8 +13,6 @@ local function first_non_null(...)
end
-- TODO: Add other major configuration points here.
-- border
-- borderchars
-- selection_strategy
local config = {}
@@ -38,6 +36,9 @@ function config.set_defaults(defaults)
set("width", 0.75)
set("winblend", 0)
set("border", {})
set("borderchars", { '', '', '', '', '', '', '', ''})
-- Builtin configuration
-- List that will be executed.

View File

@@ -116,8 +116,8 @@ function Picker:new(opts)
results_width = get_default(opts.results_width, 0.8),
-- Border config
border = get_default(opts.border, {}),
borderchars = get_default(opts.borderchars, { '', '', '', '', '', '', '', ''}),
border = get_default(opts.border, config.values.border),
borderchars = get_default(opts.borderchars, config.values.borderchars),
-- WIP:
horizontal_config = get_default(opts.horizontal_config, config.values.horizontal_config),