A simple neovim plugin with some util methods.
- loader: loads plugins with a failsafe mechanism.
- mapper: normal, insert and visual mapping helpers.
- table: map checkers such as contains, empty, return keys and values.
- neovim 0.5 or newer
local plugins = {"mcarn/utils.nvim"}
require("lazy").setup(plugins, opts)
local reqload = require("mcarn.loader").reqload
reqload("config.gruvbox")
local nmap = require("mcarn.mapper").nmap
nmap("n", "nzzzv")
local contains = require("mcarn.table").contains
contains(opt, "key") -- returns true or false