local utils = { } local scopes = {o = vim.o, b = vim.bo, w = vim.wo} function utils.opt(scope, key, value) scopes[scope][key] = value if scope ~= 'o' then scopes['o'][key] = value end end function utils.map(mode, lhs, rhs, opts) opts = opts or { noremap = true } vim.api.nvim_set_keymap(mode, lhs, rhs, opts) end return utils