summaryrefslogtreecommitdiff
path: root/lua/lv-telescope/init.lua
diff options
context:
space:
mode:
authorrebuilt <[email protected]>2021-07-01 15:50:42 +0200
committerGitHub <[email protected]>2021-07-01 09:50:42 -0400
commit1cd6e458373584bdb58717a0563c9e28be43c1e9 (patch)
tree014b6dcc2e2a9a3fd4619595703f67a6190b6620 /lua/lv-telescope/init.lua
parent1334df246cd71473f34f4f8dd9518b795e468b29 (diff)
Update telescope config in response to breaking changes in the latest telescope update (#572)
Diffstat (limited to 'lua/lv-telescope/init.lua')
-rw-r--r--lua/lv-telescope/init.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/lua/lv-telescope/init.lua b/lua/lv-telescope/init.lua
index e6ebf38d..8bf73369 100644
--- a/lua/lv-telescope/init.lua
+++ b/lua/lv-telescope/init.lua
@@ -11,7 +11,6 @@ require('telescope').setup {
'rg', '--no-heading', '--with-filename', '--line-number',
'--column', '--smart-case'
},
- prompt_position = "bottom",
prompt_prefix = " ",
selection_caret = " ",
entry_prefix = " ",
@@ -19,7 +18,10 @@ require('telescope').setup {
selection_strategy = "reset",
sorting_strategy = "descending",
layout_strategy = "horizontal",
- layout_defaults = {
+ layout_config = {
+ width = 0.75,
+ prompt_position = "bottom",
+ preview_cutoff = 120,
horizontal = {mirror = false},
vertical = {mirror = false}
},
@@ -28,10 +30,6 @@ require('telescope').setup {
generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter,
shorten_path = true,
winblend = 0,
- width = 0.75,
- preview_cutoff = 120,
- results_height = 1,
- results_width = 0.8,
border = {},
borderchars = {'─', '│', '─', '│', '╭', '╮', '╯', '╰'},
color_devicons = true,