Skip to content

Commit

Permalink
feat(keymap): use multi-mode mappings where possible (ayamir#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
kang8 authored and singlemancombat committed Apr 3, 2023
1 parent ebee7b8 commit 7d1dc65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions lua/keymap/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ local plug_map = {
["n|gr"] = map_cr("Lspsaga rename"):with_noremap():with_silent():with_desc("lsp: Rename in file range"),
["n|gR"] = map_cr("Lspsaga rename ++project"):with_noremap():with_silent():with_desc("lsp: Rename in project range"),
["n|K"] = map_cr("Lspsaga hover_doc"):with_noremap():with_silent():with_desc("lsp: Show doc"),
["nv|ga"] = map_cr("Lspsaga code_action"):with_noremap():with_silent():with_desc("lsp: Code action for cursor"),
-- ["v|ga"] = map_cu("Lspsaga code_action"):with_noremap():with_silent():with_desc("lsp: Code action for range"),
["nv|ga"] = map_cr("Lspsaga code_action"):with_noremap():with_silent():with_desc("lsp: Code action"),
["n|gd"] = map_cr("Lspsaga peek_definition"):with_noremap():with_silent():with_desc("lsp: Preview definition"),
["n|gD"] = map_cr("Lspsaga goto_definition"):with_noremap():with_silent():with_desc("lsp: Goto definition"),
["n|gp"] = map_cr("Lspsaga preview_definition"):with_noremap():with_silent():with_desc("lsp: Preview definition"),
Expand Down
7 changes: 1 addition & 6 deletions lua/modules/configs/ui/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,7 @@ return function()
:with_buffer(bufnr)
:with_desc("git: Blame line"),
-- Text objects
["o|ih"] = bind
.map_callback(function()
require("gitsigns.actions").text_object()
end)
:with_buffer(bufnr),
["x|ih"] = bind
["ox|ih"] = bind
.map_callback(function()
require("gitsigns.actions").text_object()
end)
Expand Down

0 comments on commit 7d1dc65

Please sign in to comment.