refactor(mappings): merge two similar mapping groups
This commit is contained in:
@@ -56,6 +56,7 @@ vim.keymap.set({ "x" }, ">", ">gv")
|
|||||||
|
|
||||||
-- Remove default mappings
|
-- Remove default mappings
|
||||||
vim.keymap.set("", "<C-LeftMouse>", "")
|
vim.keymap.set("", "<C-LeftMouse>", "")
|
||||||
|
vim.keymap.set("n", "gr", "<Nop>")
|
||||||
vim.keymap.set("n", "K", function()
|
vim.keymap.set("n", "K", function()
|
||||||
if vim.bo.filetype == "vim" or vim.bo.filetype == "help" then
|
if vim.bo.filetype == "vim" or vim.bo.filetype == "help" then
|
||||||
vim.cmd("help " .. vim.fn.expand("<cword>"))
|
vim.cmd("help " .. vim.fn.expand("<cword>"))
|
||||||
@@ -109,9 +110,6 @@ vim.keymap.set("n", "<Leader>r", function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Removed bindings
|
|
||||||
vim.keymap.set("n", "gr", "<Nop>")
|
|
||||||
|
|
||||||
-- Default bindings that are good to know:
|
-- Default bindings that are good to know:
|
||||||
-- insert mode:
|
-- insert mode:
|
||||||
-- <C-T> - indent, see :h i_CTRL-T
|
-- <C-T> - indent, see :h i_CTRL-T
|
||||||
|
|||||||
Reference in New Issue
Block a user