diff options
Diffstat (limited to 'lua/alpha')
| -rw-r--r-- | lua/alpha/telescope.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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', '<c-j>', actions.git_create_branch) + map('n', '<c-j>', actions.git_create_branch) + return true + end}) +end + return M |