From 2a9f9998aca359a41eefe3a1c429d049a5a1806b Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 27 Feb 2022 15:49:17 +0330 Subject: chore(plugins): bump version (#2315) --- lua/lvim/core/telescope.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lua/lvim/core/telescope.lua') 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, -- cgit v1.2.3 From 4c705bc07d7e0510e88d9ce95e45999e95719144 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 10 Mar 2022 09:54:38 +0100 Subject: feat(windows): add custom config_win.example.lua (#2330) --- lua/lvim/core/telescope.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/lvim/core/telescope.lua') diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index 0d9c1207..11a9655d 100644 --- a/lua/lvim/core/telescope.lua +++ b/lua/lvim/core/telescope.lua @@ -153,7 +153,9 @@ function M.setup() end if lvim.builtin.telescope.extensions and lvim.builtin.telescope.extensions.fzf then - require("telescope").load_extension "fzf" + pcall(function() + require("telescope").load_extension "fzf" + end) end end -- cgit v1.2.3