mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
refactor(nvim): Keymap updates for git, symbol search & save/quit
- Treesitter: `]a` -> next arg, `[a` -> previous arg, `]T` -> next test - git: Revert Previous & next hunks to `]g` & `[g` - git: Remove `<space>gK` for hover blame-line: use `<space>gL` instead - save: Save all files with `<C-s>`, - exit: Quit without saving with `<C-q>`: won't exit with unsaved files: sometime you don't want to save files - Search symbols with `<space>s` & `<space>S` instead of `<space>cs` & `<space>cS`
This commit is contained in:
@@ -269,10 +269,13 @@ return {
|
||||
|
||||
move = {
|
||||
-- Jump to next and previous text objects
|
||||
-- ]a -> next argument
|
||||
-- ]T -> next test
|
||||
enable = true,
|
||||
goto_next_start = {
|
||||
["]f"] = { query = "@function.outer", desc = "Goto next inner function start" },
|
||||
["]o"] = { query = "@loop.*", desc = "Goto next loop start" },
|
||||
["]a"] = { query = "@parameter.inner", desc = "Goto next parameter" },
|
||||
},
|
||||
goto_next_end = {
|
||||
["]F"] = { query = "@function.outer", desc = "Goto next outer function end" },
|
||||
@@ -282,6 +285,7 @@ return {
|
||||
goto_previous_start = {
|
||||
["[f"] = { query = "@function.outer", desc = "Goto goto previous inner function start" },
|
||||
["[o"] = { query = "@loop.*", desc = "Goto previous loop start" },
|
||||
["[a"] = { query = "@parameter.inner", desc = "Goto previous parameter" },
|
||||
},
|
||||
goto_previous_end = {
|
||||
["[F"] = { query = "@function.outer", desc = "Goto goto previous outer function start" },
|
||||
|
||||
Reference in New Issue
Block a user