Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- map helper function
- local function map(mode, lhs, rhs, opts)
- local options = { noremap = true, silent = true }
- if opts then
- if opts.desc then
- opts.desc = "keymaps.lua: " .. opts.desc
- end
- options = vim.tbl_extend('force', options, opts)
- end
- vim.keymap.set(mode, lhs, rhs, options)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement