refactor(nvim): Move functions to null.util
This commit is contained in:
parent
0261c07d0a
commit
06ec5fcda4
3 changed files with 36 additions and 27 deletions
|
@ -1,16 +1,5 @@
|
|||
-- Loaded by `null.config`
|
||||
local map = function(modes, key, target, opts)
|
||||
local mt = {}
|
||||
|
||||
for mode in modes:gmatch"." do
|
||||
table.insert(mt, mode)
|
||||
end
|
||||
|
||||
vim.keymap.set(mt, key, target, opts or {
|
||||
noremap = true,
|
||||
silent = true,
|
||||
})
|
||||
end
|
||||
local map = require("null.util").map
|
||||
|
||||
-- Map Ctrl+U as U so it can be used as redo
|
||||
map("n", "<C-u>", "U")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue