summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2022-05-15 16:08:16 -0400
committerGitHub <noreply@github.com>2022-05-15 22:08:16 +0200
commit0b5f1d69d793660900552ad4606c3adcc9934963 (patch)
tree7fcec0a6f058ab0551d0c02ee4250cb03abc4e25 /lua/telescope/config.lua
parent2e421ef02dd1acf596d6c382d27230381a946b47 (diff)
feat: Add ability to choose window to edit (#745)
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index 37a2846..f5cc3c6 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -788,6 +788,20 @@ append(
)
append(
+ "get_selection_window",
+ function()
+ return 0
+ end,
+ [[
+ Function that takes function(picker, entry) and returns a window id.
+ The window ID will be used to decide what window the chosen file will
+ be opened in and the cursor placed in upon leaving the picker.
+
+ Default: `function() return 0 end`
+ ]]
+)
+
+append(
"file_previewer",
function(...)
return require("telescope.previewers").vim_buffer_cat.new(...)