From 9edbeeaae403f9ea95400d82f5d2cabe01f28649 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Sun, 24 Dec 2023 22:10:28 +0100 Subject: [PATCH] telescope: add git bindings --- lua/telescope-configure.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/telescope-configure.lua b/lua/telescope-configure.lua index bb0509d..6104773 100644 --- a/lua/telescope-configure.lua +++ b/lua/telescope-configure.lua @@ -76,3 +76,9 @@ vim.keymap.set('n', 'sg', require('telescope.builtin').live_grep, { desc vim.keymap.set('n', 'sG', ':LiveGrepGitRoot', { desc = '[S]earch by [G]rep on Git Root' }) vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' }) vim.keymap.set('n', 'sr', require('telescope.builtin').resume, { desc = '[S]earch [R]esume' }) + +-- vim telescope +vim.keymap.set('n', 'gc', require('telescope.builtin').git_commits, { desc = '[G]it [C]ommits' }) +vim.keymap.set('n', 'gs', require('telescope.builtin').git_status, { desc = '[G]it [S]tatus' }) +vim.keymap.set({'n', 'x'}, 'gB', require('telescope.builtin').git_bcommits, { desc = '[G]it [B]commits' }) +vim.keymap.set('n', 'gb', require('telescope.builtin').git_branches, { desc = '[G]it [B]ranches' })