From 61c99e945e43794d3b0be59b9c0cfa7aa1655540 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 20 Nov 2022 17:20:11 +0100 Subject: small changes --- lua/alpha/dap.lua | 2 +- lua/alpha/telescope/init.lua | 25 +------------------------ 2 files changed, 2 insertions(+), 25 deletions(-) (limited to 'lua') 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", "", fb_actions.create) return true -- cgit v1.2.3