diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-04-03 23:19:50 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-04-03 23:19:50 +0200 |
commit | 515ca85a4c1c1abcccb04267e04b6000a6d0f4ce (patch) | |
tree | 0c79e381b63e52138f672764393204217a1dba68 /dotfiles | |
parent | Hardware: VM: Set /nix size to 44G (diff) | |
download | nixos-config-515ca85a4c1c1abcccb04267e04b6000a6d0f4ce.tar.gz nixos-config-515ca85a4c1c1abcccb04267e04b6000a6d0f4ce.tar.bz2 nixos-config-515ca85a4c1c1abcccb04267e04b6000a6d0f4ce.zip |
Dotfiles: Nvim: Set keybind for showing git blame
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/nvim/init.lua | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua index c3cb15d..963db38 100644 --- a/dotfiles/nvim/init.lua +++ b/dotfiles/nvim/init.lua @@ -268,15 +268,18 @@ require('lazy').setup({ -- See `:help gitsigns` to understand what the configuration keys do { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', - opts = { - signs = { - add = { text = '+' }, - change = { text = '~' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - }, - }, + config = function() + require('gitsigns').setup { + signs = { + add = { text = '+' }, + change = { text = '~' }, + delete = { text = '_' }, + topdelete = { text = '‾' }, + changedelete = { text = '~' }, + }, + vim.keymap.set('n', '<leader>gb', require('gitsigns').blame_line, { desc = '[G]it [B]lame' }), + } + end }, -- NOTE: Plugins can also be configured to run lua code when they are loaded. |