aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-11-20 17:20:11 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-11-20 17:20:11 +0100
commit61c99e945e43794d3b0be59b9c0cfa7aa1655540 (patch)
tree93c3703883f554f0618be4ada6c3264686ef54b7 /lua/alpha
parent86c78b727294f7ab10e9521140a899ed4a9a166f (diff)
downloadnvim-conf-61c99e945e43794d3b0be59b9c0cfa7aa1655540.tar.gz
nvim-conf-61c99e945e43794d3b0be59b9c0cfa7aa1655540.zip
small changes
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/dap.lua2
-rw-r--r--lua/alpha/telescope/init.lua25
2 files changed, 2 insertions, 25 deletions
diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua
index 5511066..8e747db 100644
--- a/lua/alpha/dap.lua
+++ b/lua/alpha/dap.lua
@@ -31,7 +31,7 @@ dapui.setup({
dap_go.setup()
vim.fn.sign_define("DapBreakpoint", { text = "๐Ÿ›‘", texthl = "", linehl = "", numhl = "" })
-vim.fn.sign_define("DapStopped", { text = "โžก๏ธ", texthl = "", linehl = "", numhl = "" })
+vim.fn.sign_define("DapStopped", { text = "โ–ถ", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapBreakpointRejected", { text = "๐Ÿšซ", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapBreakpointCondition", { text = "โ“", texthl = "", linehl = "", numhl = "" })
vim.fn.sign_define("DapLogPoint", { text = "๐Ÿ’ฌ", texthl = "", linehl = "", numhl = "" })
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