[go: up one dir, main page]

Skip to content

🌈 A Neovim plugin to add vscode-style TailwindCSS completion to nvim-cmp

Notifications You must be signed in to change notification settings

roobert/tailwindcss-colorizer-cmp.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

🌈 TailwindCSS Colorizer CMP

tailwindcss-colorizer-cmp Screenshot

A Neovim plugin to add vs-code-style TailwindCSS color hints to the nvim-cmp completion menu.

🚀 Installation

Packer.nvim

use({
  "roobert/tailwindcss-colorizer-cmp.nvim",
  -- optionally, override the default options:
  config = function()
    require("tailwindcss-colorizer-cmp").setup({
      color_square_width = 2,
    })
  end
})

Lazy.nvim

{
  "roobert/tailwindcss-colorizer-cmp.nvim",
  -- optionally, override the default options:
  config = function()
    require("tailwindcss-colorizer-cmp").setup({
      color_square_width = 2,
    })
  end
}

🛠️ Usage

After installing the plugin, please ensure it's initialised with one of the following:

Standard Neovim

require("cmp").config.formatting = {
  format = require("tailwindcss-colorizer-cmp").formatter
}

LunarVim

lvim.builtin.cmp.formatting = {
  format = require("tailwindcss-colorizer-cmp").formatter
}

❤️ Related

If you'd also like color highlighting in the buffer, please see: NvChad/nvim-colorizer.lua

A nice video on adding various tailwind support to Neovim can be found here.

About

🌈 A Neovim plugin to add vscode-style TailwindCSS completion to nvim-cmp

Resources

Stars

Watchers

Forks

Languages