summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-03-30 12:32:18 +0200
committerGitHub <noreply@github.com>2021-03-30 12:32:18 +0200
commitaefc8317354426864a361d7b7d84848145d218c1 (patch)
tree97b6c1c8a7401179e1ddff8f207c5dcf07029d78 /lua/telescope/config.lua
parent2e03f67de9eab023098bd05916bf26556520a467 (diff)
fix: no longer leaking one buffer previewer in some occasions (#664)
* fix: stop leaking last preview buffer * fix: formatting for docs * fix: async check if file is dir or not and - fix for in_fast_event when overriding file_maker * fix: filtering for space in keymaps and fzy * fix: show correct result numbers when using file_ignore_patterns * Handle early close. Caused because we actually cleaning up buffers now * cleanup * [docgen] Update doc/telescope.txt
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua21
1 files changed, 7 insertions, 14 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index 17c1e91..c62e21b 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -59,8 +59,7 @@ function config.set_defaults(defaults)
config.values[name] = get(name, default_val)
if description then
- -- TODO(conni2461): trim is wrong. We need to do dedent here
- config.descriptions[name] = dedent(vim.trim(description))
+ config.descriptions[name] = dedent(description)
end
end
@@ -69,8 +68,7 @@ function config.set_defaults(defaults)
Available options are:
- "descending" (default)
- - "ascending"
- ]])
+ - "ascending"]])
set("selection_strategy", "reset", [[
Determines how the cursor acts after each sort iteration.
@@ -78,16 +76,14 @@ function config.set_defaults(defaults)
Available options are:
- "reset" (default)
- "follow"
- - "row"
- ]])
+ - "row"]])
set("scroll_strategy", "cycle", [[
Determines what happens you try to scroll past view of the picker.
Available options are:
- "cycle" (default)
- - "limit"
- ]])
+ - "limit"]])
set("layout_strategy", "horizontal")
set("layout_defaults", {})
@@ -103,18 +99,15 @@ function config.set_defaults(defaults)
set("prompt_prefix", "> ", [[
Will be shown in front of the prompt.
- Default: '> '
- ]])
+ Default: '> ']])
set("selection_caret", "> ", [[
Will be shown in front of the selection.
- Default: '> '
- ]])
+ Default: '> ']])
set("entry_prefix", " ", [[
Prefix in front of each result entry. Current selection not included.
- Default: ' '
- ]])
+ Default: ' ']])
set("initial_mode", "insert")
set("border", {})