diff options
| author | Ariel D'ALessandro <dalessandro.ariel@gmail.com> | 2021-08-15 20:19:26 +0200 |
|---|---|---|
| committer | Ariel D'ALessandro <dalessandro.ariel@gmail.com> | 2021-08-15 20:19:26 +0200 |
| commit | fd01b6c1b3081d8acbd8d2408134e45ef25aa163 (patch) | |
| tree | 83705dc38a8a3d6ab75e664ec68c9b987e95a8e3 /lua/alpha | |
| parent | 7c8ba7a40a3209fc1cf483e82f62560b4dff1a06 (diff) | |
| download | nvim-conf-fd01b6c1b3081d8acbd8d2408134e45ef25aa163.tar.gz nvim-conf-fd01b6c1b3081d8acbd8d2408134e45ef25aa163.zip | |
move to user packer, switch keybinding for new branch
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 |