From fd01b6c1b3081d8acbd8d2408134e45ef25aa163 Mon Sep 17 00:00:00 2001 From: Ariel D'ALessandro Date: Sun, 15 Aug 2021 20:19:26 +0200 Subject: move to user packer, switch keybinding for new branch --- lua/alpha/telescope.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lua/alpha') diff --git a/lua/alpha/telescope.lua b/lua/alpha/telescope.lua index 681c55f..6bb4150 100644 --- a/lua/alpha/telescope.lua +++ b/lua/alpha/telescope.lua @@ -40,4 +40,12 @@ M.buffers = function() require("telescope.builtin").buffers() end +M.branches = function() + require'telescope.builtin'.git_branches({ attach_mappings = function(_, map) + map('i', '', actions.git_create_branch) + map('n', '', actions.git_create_branch) + return true + end}) +end + return M -- cgit v1.2.3