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, })