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.
- Host: GitHub
- URL: https://github.com/rehd0/colorviewer.nvim
- Owner: Rehd0
- License: mit
- Created: 2025-10-12T15:04:25.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-10-12T15:19:06.000Z (4 months ago)
- Last Synced: 2025-11-01T17:31:08.538Z (3 months ago)
- Topics: colors, colorviewer, colorviewer-nvim, developer-tools, lua, neovim, nvim, plugin
- Language: Lua
- Homepage:
- Size: 161 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐จ colorviewer.nvim

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.
(๏ฝกโขฬแด-)โง