Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 790 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 790 Bytes

🛠️ utils.nvim

A simple neovim plugin with some util methods.

Features

  • 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.

Requirements

  • neovim 0.5 or newer

Installation

local plugins = {"mcarn/utils.nvim"}
require("lazy").setup(plugins, opts)

Usage

Loader

local reqload = require("mcarn.loader").reqload
reqload("config.gruvbox")

Mapper

local nmap = require("mcarn.mapper").nmap
nmap("n", "nzzzv")

Table

local contains = require("mcarn.table").contains
contains(opt, "key") -- returns true or false