From a1b24cb74653160bdbc1c582f2c63c4bd42040d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sat, 30 Jul 2022 08:41:51 +0200 Subject: [PATCH] fix(neovim): fix key bindings --- home/editors/neovim/gitsigns.lua | 4 ++-- home/editors/neovim/treesitter.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/editors/neovim/gitsigns.lua b/home/editors/neovim/gitsigns.lua index cd856f9..23000b3 100644 --- a/home/editors/neovim/gitsigns.lua +++ b/home/editors/neovim/gitsigns.lua @@ -18,9 +18,9 @@ require("gitsigns").setup { u = { "Gitsigns undo_stage_hunk", "Unstage hunk" }, R = { "Gitsigns reset_buffer", "Reset buffer" }, p = { "Gitsigns preview_hunk", "Preview hunk" }, - b = { require"gitsigns".blame_line({ full = true }), "Blame line" }, + b = { function() require"gitsigns".blame_line({ full = true }) end, "Blame line" }, d = { "Gitsigns diffthis", "Diff" }, - D = { require"gitsigns".diffthis('~'), "Diff" }, + D = { function() require"gitsigns".diffthis('~') end, "Diff" }, }, ht = { name = "Git sign toggles", diff --git a/home/editors/neovim/treesitter.lua b/home/editors/neovim/treesitter.lua index 13417da..49602ac 100644 --- a/home/editors/neovim/treesitter.lua +++ b/home/editors/neovim/treesitter.lua @@ -19,7 +19,7 @@ require'nvim-treesitter.configs'.setup { smart_rename = { enable = true, keymaps = { - smart_rename = "grr", + smart_rename = "R", }, }, navigation = {