summaryrefslogtreecommitdiff
path: root/lua/telescope/themes.lua
diff options
context:
space:
mode:
authorDave Lage <rockerboo@gmail.com>2020-09-15 14:54:29 -0400
committerGitHub <noreply@github.com>2020-09-15 14:54:29 -0400
commit15d3cac7b17c0a44697affc42bd41c576e538e74 (patch)
tree5a78e6eb30e0f42d0f55da930dd4fcaa92da75e0 /lua/telescope/themes.lua
parent6ffa3c24b3b46d3ce789bae799b17d1a369dec3f (diff)
feat: Themes (#79)
Big shoutout to @rockerBOO for the idea and basically all the impl! * feat: Add dropdown layout strategy * Adding more docs. Working better with options * Refactor borders * Fix for spaces * Add preview to layout. Add Themes. * feat: themes Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'lua/telescope/themes.lua')
-rw-r--r--lua/telescope/themes.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/telescope/themes.lua b/lua/telescope/themes.lua
new file mode 100644
index 0000000..5146dbb
--- /dev/null
+++ b/lua/telescope/themes.lua
@@ -0,0 +1,29 @@
+-- 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)
+ 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",
+ border = false,
+ borderchars = {
+ prompt = {"─", "│", " ", "│", "╭", "╮", "│", "│"},
+ results = {"─", "│", "─", "│", "├", "┤", "╯", "╰"},
+ preview = {"=", "=", "", "", "", "", "", ""}
+ },
+ }
+
+ return vim.tbl_deep_extend("force", theme_opts, opts)
+end
+
+return themes