nivm: Add better keybindings for bépo layout
This commit is contained in:
parent
974fb277e8
commit
1ae85b7c62
|
@ -13,10 +13,10 @@ require 'nvim-treesitter.configs'.setup {
|
|||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = '<c-s>',
|
||||
node_incremental = '<c-s>',
|
||||
node_decremental = '<M-s>',
|
||||
scope_incremental = '<S-s>',
|
||||
init_selection = '<c-h>',
|
||||
node_incremental = '<c-h>',
|
||||
node_decremental = '<M-h>',
|
||||
scope_incremental = '<S-h>',
|
||||
}
|
||||
},
|
||||
textobjects = {
|
||||
|
|
|
@ -49,6 +49,8 @@ which_key.register({
|
|||
D = { gs.diffthis, "Show file diff" },
|
||||
j = { gs.next_hunk, "Go to next changed hunk" },
|
||||
k = { gs.prev_hunk, "Go to previous changed hunk" },
|
||||
t = { gs.next_hunk, "Go to next changed hunk" },
|
||||
s = { gs.prev_hunk, "Go to previous changed hunk" },
|
||||
b = { gs.toggle_current_line_blame, "Toggle blame for current line"},
|
||||
B = {function() gs.blame_line{full=true} end, "Blame current line"},
|
||||
h = { tele.git_commits, "Show workdir history"}
|
||||
|
|
|
@ -38,6 +38,7 @@ normal('<C-Left>', '<Cmd>vertical resize -2<CR>');
|
|||
normal('<C-Right>', '<Cmd>vertical resize +2<CR>');
|
||||
|
||||
normal('<C-u>', '<C-u>zz')
|
||||
normal('<C-t>', '<C-u>zz')
|
||||
normal('<C-d>', '<C-d>zz')
|
||||
normal('n', 'nzz')
|
||||
normal('N', 'Nzz')
|
||||
|
|
Loading…
Reference in New Issue