diff options
| author | Abouzar Parvan <[email protected]> | 2022-02-27 15:49:17 +0330 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-27 15:49:17 +0330 | 
| commit | 2a9f9998aca359a41eefe3a1c429d049a5a1806b (patch) | |
| tree | 506752269dff0d7b2fe8b0527b71cc6518ffb696 /lua/lvim/core | |
| parent | ffcfdf43062dd4a3a72eda4a657448354ec55262 (diff) | |
chore(plugins): bump version (#2315)
Diffstat (limited to 'lua/lvim/core')
| -rw-r--r-- | lua/lvim/core/telescope.lua | 16 | ||||
| -rw-r--r-- | lua/lvim/core/telescope/custom-finders.lua | 4 | 
2 files changed, 13 insertions, 7 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, diff --git a/lua/lvim/core/telescope/custom-finders.lua b/lua/lvim/core/telescope/custom-finders.lua index 18307fbd..b0ee1c07 100644 --- a/lua/lvim/core/telescope/custom-finders.lua +++ b/lua/lvim/core/telescope/custom-finders.lua @@ -50,7 +50,9 @@ local copy_to_clipboard_action = function(prompt_bufnr)  end  function M.view_lunarvim_changelog() -  local opts = themes.get_ivy { cwd = get_lvim_base_dir() } +  local opts = themes.get_ivy { +    cwd = get_lvim_base_dir(), +  }    opts.entry_maker = make_entry.gen_from_git_commits(opts)    pickers.new(opts, {  | 
