summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-09-04 00:36:28 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-09-04 00:36:28 -0400
commit996f69465ed51856aa18093d88795fae2b8565f4 (patch)
treefee85048ce993d62e4d961bef632a96cfdeea463 /lua/telescope/config.lua
parent839f57efb37cba7a9542b67b31370e1babaf194a (diff)
feat: vertical layouts. see 'layout_strategy'
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
new file mode 100644
index 0000000..6139d36
--- /dev/null
+++ b/lua/telescope/config.lua
@@ -0,0 +1,25 @@
+local get_default = require('telescope.utils').get_default
+
+
+-- TODO: Add other major configuration points here.
+-- border
+-- borderchars
+-- selection_strategy
+
+-- TODO: use `require('telescope').setup { }`
+
+_TelescopeConfigurationValues = _TelescopeConfigurationValues or {}
+
+_TelescopeConfigurationValues.default_layout_strategy = get_default(
+ _TelescopeConfigurationValues.default_layout_strategy,
+ 'horizontal'
+)
+
+-- TODO: this should probably be more complicated than just a number.
+-- If you're going to allow a bunch of layout strats, they should have nested info or something
+_TelescopeConfigurationValues.default_window_width = get_default(
+ _TelescopeConfigurationValues.default_window_width,
+ 0.75
+)
+
+return _TelescopeConfigurationValues