aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/telescope/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/telescope/init.lua')
-rw-r--r--lua/alpha/telescope/init.lua25
1 files changed, 1 insertions, 24 deletions
diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua
index 67988ea..7337322 100644
--- a/lua/alpha/telescope/init.lua
+++ b/lua/alpha/telescope/init.lua
@@ -122,30 +122,7 @@ function M.file_browser(opts)
prompt_position = "top",
},
- attach_mappings = function(prompt_bufnr, map)
- local current_picker = action_state.get_current_picker(prompt_bufnr)
-
- local modify_cwd = function(new_cwd)
- local finder = current_picker.finder
-
- finder.path = new_cwd
- finder.files = true
- current_picker:refresh(false, { reset_prompt = true })
- end
-
- map("n", "-", function()
- modify_cwd(current_picker.cwd .. "/..")
- end)
-
- map("i", "~", function()
- modify_cwd(vim.fn.expand("~"))
- end)
-
- map("n", "yy", function()
- local entry = action_state.get_selected_entry()
- vim.fn.setreg("+", entry.value)
- end)
-
+ attach_mappings = function(_, map)
map("i", "<c-y>", fb_actions.create)
return true