ethanholz / freeze.nvim

A Neovim plugin for freeze
MIT License
28 stars 5 forks source link

Add `:checkhealth freeze` for required and optional depencies #12

Open AlejandroSuero opened 4 months ago

AlejandroSuero commented 4 months ago

Motivation

I am doing my own plugin for freeze, called freeze-code.nvim and one of the things that almost all plugins that requires dependencies to run, in my plugin I have more because I handle also installation in case that freeze is not installed.

Example

:checkhealth freeze-code:

:checkhealth freeze-code example image

In my plugin, it will check freeze as required and copy, open and install commands as optional, depending on the OS. For MacOS xclip is not required but it could be used, so It shows as WARNING not installed and tells the user that by installing it will have extended capabilities.

In my case if I was on Windows it will show Expand-Archive instead of tar to extract archive for example.