From 1f3712f4c98ff32b75cafa2ac8b182a2df23d034 Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Tue, 29 Aug 2023 12:25:43 -0400 Subject: [PATCH] add `master` git bindings jic they're needed --- .config/nvim/lua/keys.lua | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/keys.lua b/.config/nvim/lua/keys.lua index 0f76a84..8efb60e 100644 --- a/.config/nvim/lua/keys.lua +++ b/.config/nvim/lua/keys.lua @@ -66,17 +66,14 @@ wk.register({ s = { 'Git', 'Status' }, p = { 'Git push -u origin head', 'Push' }, P = { 'Git push -u origin head --force-with-lease', 'Push (force with lease)' }, - f = { - name = 'fetch', - o = { 'Git fetch origin', 'origin' }, - u = { 'Git fetch upstream', 'upstream' }, - }, + f = { 'Git fetch', 'Fetch' }, r = { name = 'rebase', o = { 'Git rebase origin/main', 'origin/main' }, O = { 'Git rebase --interactive origin/main', '-i origin/main' }, - u = { 'Git rebase upstream/main', 'upstream/main' }, - U = { 'Git rebase --interactive upstream/main', '-i upstream/main' }, + m = { 'Git rebase origin/master', 'origin/master' }, + M = { 'Git rebase --interactive origin/master', '-i origin/master' }, + r = { 'Git rebase ', 'rebase ...' }, } }, @@ -110,8 +107,8 @@ vim.api.nvim_create_autocmd('LspAttach', { -- vim.keymap.set('n', 'rn', vim.lsp.buf.rename, opts) -- vim.keymap.set({ 'n', 'v' }, 'ca', vim.lsp.buf.code_action, opts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) - -- vim.keymap.set('n', 'f', function() - -- vim.lsp.buf.format { async = true } - -- end, opts) + vim.keymap.set('n', 'F', function() + vim.lsp.buf.format { async = true } + end, opts) end, })