feat: vertical layouts. see 'layout_strategy'

This commit is contained in:
TJ DeVries
2020-09-04 00:36:28 -04:00
parent 839f57efb3
commit 996f69465e
4 changed files with 177 additions and 49 deletions
+25
View File
@@ -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