An open API service indexing awesome lists of open source software.

https://github.com/rehd0/colorviewer.nvim

A lightweight Neovim plugin that displays VSCode-like color swatches inline for color names.
https://github.com/rehd0/colorviewer.nvim

colors colorviewer colorviewer-nvim developer-tools lua neovim nvim plugin

Last synced: 3 months ago
JSON representation

A lightweight Neovim plugin that displays VSCode-like color swatches inline for color names.

Awesome Lists containing this project

README

          

# ๐ŸŽจ colorviewer.nvim

![Preview](./preview.png)

A Neovim plugin that displays VSCode-like color swatches inline for color names in your code.
No fancy dependencies. No lag. Just beautiful simplicity ๐Ÿ˜‹

## Features

- Shows a colored box before recognized color names (e.g., `red`, `green`, `#ff0000`) in supported filetypes.
- Automatically works in CSS, HTML, JS, JSX, TSX, Vue, and more.

## Installation
use your favourite plugin manager

**Using [lazy.nvim](https://github.com/folke/lazy.nvim):**
```lua
{
'Godswill-255/colorviewer.nvim',
config = function()
require('colorviewer').setup({
symbol = "โ– ",
})
end
}
```
**Using [Packer.nvim](https://github.com/wbthomason/packer.nvim):**
```lualua
use {'Godswill-255/colorviewer.nvim',
config = function()
require('colorviewer').setup({
symbol = "โ– ",
})
end
}
```

**Using [init.vim](https://neovim.io/doc/user/plugin.html):**
```vim
Plug 'Godswill-255/colorviewer.nvim'
lua << EOF
require('colorviewer').setup({
symbol = "โ– ",
})
EOF
```

## ๐Ÿ“œ License

Released under the [MIT License](./LICENSE).
ยฉ 2025 Rehd โ€” free to use, modify, and share.
(๏ฝกโ€ขฬ€แด—-)โœง