diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2024-04-18 03:00:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 21:00:39 -0400 |
commit | f5c9fe8e15aafb6857706e3c05b5eee4ecb98a2b (patch) | |
tree | c53cc06c4223ff51170b2cf2567e6f85eb524afa /init.lua | |
parent | 5e258d276fef52cc45a17021dc83a95748a0bc7f (diff) |
Add gitsigns recommended keymaps as an optional plugin (#858)
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -287,7 +287,12 @@ require('lazy').setup({ ['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' }, ['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, ['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, + ['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' }, } + -- visual mode + require('which-key').register({ + ['<leader>h'] = { 'Git [H]unk' }, + }, { mode = 'v' }) end, }, @@ -856,6 +861,7 @@ require('lazy').setup({ -- require 'kickstart.plugins.lint', -- require 'kickstart.plugins.autopairs', -- require 'kickstart.plugins.neo-tree', + -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. |