nvim html entities plugin. HTML encode / decode files with this plugin
This plugin is based on htmlEntities-for-lua by TiagoDanin:
nvim 0.9+
The :HtmlEncode and :HtmlDecode commands are registered automatically on
startup, no setup() call is required.
-- lazy.nvim
{
'Summeli/html-entities.nvim',
cmd = { 'HtmlEncode', 'HtmlDecode' }, -- lazy-load on first use
}
-- packer.nvim
use { 'Summeli/html-entities.nvim' }Run one of the commands against the current buffer:
:HtmlEncode
:HtmlDecode:HtmlEncode replaces special characters (e.g. <, &, é) in the current
buffer with their HTML entity equivalents (e.g. <, &, é).
:HtmlDecode reverses this, turning HTML entities back into their characters.
This plugin currently has no configuration options. setup() is exposed for
future options and is safe to call, but not required:
require('html-entities').setup()Contributions are welcome. If you have an idea for a feature you'd like to see added, submit a PR rquest