An unopinionated set of utility functions for neovim plugins
The goal of this plugin is to work with existing neovim libraries/plugins to provide a more complete set of utility functions.
A sub-goal of this library is to provide an intuitive wrapper interface over the neovim API. All utilities in this plugin are typed by the lua-language-server's standard.
{
"samsze0/utils.nvim",
dependencies = {
"nvim-neotest/nvim-nio",
"pysan3/pathlib.nvim"
}
}- Add
vim.systemwrapper - Add
oopmodule - Add
vim.waitwrapper - Add
vim.stricmpwrapper - Remove
base64module and force downstream usevim.base64 - Wrap
vim.json - Wrap
vim.diff - Add
highlightmodule - Remove
uvmodule and replace with nvim-nio (if possible) - Wrap
vim.spell - Wrap
vim.inspect_posandvim.show_pos - Perhaps update
nullishimpl by leveragingvim.defaulttableorvim.tbl_get - Perhaps remove
is_arrayand just usevim.arrayorvim.listinstead - Wrap
vim.list_contains,vim.list_extend,vim.list_slice,vim.tbl_contains,vim.tbl_count,vim.tbl_filter,vim.tbl_keys,vim.tbl_map,vim.tbl_values - Add
schemamodule by leveragingvim.validate - Wrap
vim.loader - Wrap
vim.iterand perhaps advise the usage ofvim.iterover table utils
MIT