summaryrefslogtreecommitdiff
path: root/lua/lvim/core/telescope.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2022-02-27 15:49:17 +0330
committerGitHub <[email protected]>2022-02-27 15:49:17 +0330
commit2a9f9998aca359a41eefe3a1c429d049a5a1806b (patch)
tree506752269dff0d7b2fe8b0527b71cc6518ffb696 /lua/lvim/core/telescope.lua
parentffcfdf43062dd4a3a72eda4a657448354ec55262 (diff)
chore(plugins): bump version (#2315)
Diffstat (limited to 'lua/lvim/core/telescope.lua')
-rw-r--r--lua/lvim/core/telescope.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua
index 2c9ef1e7..0d9c1207 100644
--- a/lua/lvim/core/telescope.lua
+++ b/lua/lvim/core/telescope.lua
@@ -25,7 +25,15 @@ function M.config()
layout_config = {
width = 0.75,
preview_cutoff = 120,
- horizontal = { mirror = false },
+ horizontal = {
+ preview_width = function(_, cols, _)
+ if cols < 120 then
+ return math.floor(cols * 0.5)
+ end
+ return math.floor(cols * 0.6)
+ end,
+ mirror = false,
+ },
vertical = { mirror = false },
},
vimgrep_arguments = {
@@ -91,11 +99,7 @@ function M.code_actions()
width = 80,
height = 12,
},
- borderchars = {
- prompt = { "─", "│", " ", "│", "╭", "╮", "│", "│" },
- results = { "─", "│", "─", "│", "├", "┤", "╯", "╰" },
- preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
- },
+ borderchars = lvim.builtin.telescope.defaults.borderchars,
border = {},
previewer = false,
shorten_path = false,