Module colorizer.tailwind

Handles Tailwind CSS color highlighting within buffers.

This module integrates with the Tailwind CSS Language Server Protocol (LSP) to retrieve and apply color highlights for Tailwind classes in a buffer. It manages LSP attachment, autocmds for color updates, and maintains state for efficient Tailwind highlighting.

Functions

cleanup (bufnr) Cleanup tailwind variables and autocmd
setup_lsp_colors (bufnr, options, options_local, add_highlight) highlight buffer using values returned by tailwindcss To see these table information, see |colorizer.buffer|


Functions

cleanup (bufnr)
Cleanup tailwind variables and autocmd

Parameters:

  • bufnr number: buffer number (0 for current)
setup_lsp_colors (bufnr, options, options_local, add_highlight)
highlight buffer using values returned by tailwindcss To see these table information, see |colorizer.buffer|

Parameters:

  • bufnr number: Buffer number (0 for current)
  • options table
  • options_local table
  • add_highlight function
generated by LDoc 1.5.0 Last updated - December