https://github.com/cachebag/nvim-tcss
A Neovim plugin for Textual CSS (.tcss) syntax highlighting as seen on www.github.com/Textualize/transcendent-textual
https://github.com/cachebag/nvim-tcss
Last synced: 2 months ago
JSON representation
A Neovim plugin for Textual CSS (.tcss) syntax highlighting as seen on www.github.com/Textualize/transcendent-textual
- Host: GitHub
- URL: https://github.com/cachebag/nvim-tcss
- Owner: cachebag
- License: mit
- Created: 2024-12-26T17:57:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T03:25:57.000Z (about 1 year ago)
- Last Synced: 2025-02-03T04:25:27.572Z (about 1 year ago)
- Language: Vim Script
- Homepage:
- Size: 80.1 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvim-tcss
A Neovim plugin for Textual CSS (.tcss) syntax highlighting as seen on [transcendent-textual](https://github.com/Textualize/transcendent-textual).

## Features
- 🎨 Full syntax highlighting support for .tcss files
- 🌈 Support for ANSI and web colors
- 📐 Proper highlighting of Textual-specific properties
- 💫 Variable highlighting
- 🔧 Function support (rgb, rgba, hsl, hsla)
- 🔍 Automatic file type detection
## Installation
### Using [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use {
'cachebag/nvim-tcss',
config = function()
require('tcss').setup()
end
}
```
### Using [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
'cachebag/nvim-tcss',
config = true
}
```
### Using [vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'cachebag/nvim-tcss'
" After installation, in your init.vim/init.lua:
lua require('tcss').setup()
```
### Using [dein.vim](https://github.com/Shougo/dein.vim)
```vim
call dein#add('cachebag/nvim-tcss')
```
### Using [minpac](https://github.com/k-takata/minpac)
```vim
call minpac#add('cachebag/nvim-tcss')
```
### Using [vim-pathogen](https://github.com/tpope/vim-pathogen)
```bash
cd ~/.vim/bundle
git clone https://github.com/cachebag/nvim-tcss.git
```
## Configuration
```lua
require('tcss').setup({
-- Enable syntax highlighting (default: true)
enable = true,
-- Custom color overrides
colors = {
-- Add custom highlighting rules here
}
})
```