Files
telescope.nvim/lua/telescope/themes.lua
T
141dc6d55e ci: Add luacheck ci job (#317)
* Add luacheck ci job

* Fix most of the linting issues

* fixup: lint

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-09 15:46:41 -05:00

35 lines
963 B
Lua

-- Prototype Theme System (WIP)
-- Currently certain designs need a number of parameters.
--
-- local opts = themes.get_dropdown { winblend = 3 }
--
local themes = {}
function themes.get_dropdown(opts)
opts = opts or {}
local theme_opts = {
-- WIP: Decide on keeping these names or not.
theme = "dropdown",
sorting_strategy = "ascending",
layout_strategy = "center",
results_title = false,
preview_title = "Preview",
preview_cutoff = 1, -- Preview should always show (unless previewer = false)
width = 80,
results_height = 15,
borderchars = {
{ '─', '│', '─', '│', '╭', '╮', '╯', '╰'},
prompt = {"─", "│", " ", "│", "╭", "╮", "│", "│"},
results = {"─", "│", "─", "│", "├", "┤", "╯", "╰"},
preview = { '─', '│', '─', '│', '╭', '╮', '╯', '╰'},
},
}
return vim.tbl_deep_extend("force", theme_opts, opts)
end
return themes