utils.nvim is a Neovim plugin that provides a collection of utilities to simplify the development of your Neovim plugins.
plenary.nvimnvim-web-devicons (optional, for language icons)utils.nvim is not meant to be installed by itself, but rather as a dependency for another plugin.
If you are building a plugin that requires the utilities provided by utils.nvim, you can add it as a dependency as shown below:
-- Lazy
{
'yourname/plugin.nvim',
dependencies = {
'2kabhishek/utils.nvim'
},
},
utils.nvim is divided into several modules, each providing specific functionalities:
cache: a module for caching data and managing cache files.notification: a module for simplifying notification queues.language: a module for programming language filetype and icon management.shell: a module for executing shell commands and opening URLs, files.json: a module for handling JSON data.time: a module for working with time and date.utils.nvim adds the following command:
UtilsClearCache: Clears all cache files saved by the plugin. To execute it, run:Run :help utils.txt for more details.
Planning to add <feature/module>.
utils.nvim was created while working on octohub.nvim which relied on a lot of common utilities like async shell execution, notifications, and caching.
⭐ hit the star button if you found this useful ⭐
Source | Blog | Twitter | LinkedIn | More Links | Other Projects