Easily convert and switch between different color formats.
Note
Currently, it supports switching between HEX and RGB color formats only.
More will be supported soon. As most engineers primarily deal
with these two formats only, they are enabled by default.
Using packer here:
use {
"rocktimsaikia/color-switch.nvim",
config = function()
require("color-switch")
end
}
The plugin exposes a single command :ColorSwitch
to keep the API simple and easy to use.
Combine it with your preferred key mapping in normal mode.
Example:
vim.keymap.set("n", "<Leader>cs", "<cmd>ColorSwitch<CR>")