made tab helper, relative movement

This commit is contained in:
2022-10-10 08:12:29 -05:00
parent 61446bb8e5
commit a8ad2d6fe8
17 changed files with 39 additions and 45 deletions
+2 -8
View File
@@ -1,13 +1,7 @@
local function local_map(mode, lhs, rhs, opts)
local options = { noremap = true }
if opts then
options = vim.tbl_extend("force", options, opts)
end
vim.api.nvim_buf_set_keymap(0, mode, lhs, rhs, options)
end
local map = require("helpers").map
local function silent_map(mode, lhs, rhs)
local_map(mode, lhs, rhs, { silent = true })
map(mode, lhs, rhs, { silent = true })
end
silent_map("n", "<Up>", "gk")