roobert / tailwindcss-colorizer-cmp.nvim

:rainbow: A Neovim plugin to add vscode-style TailwindCSS completion to nvim-cmp
318 stars 3 forks source link

How to use this plugin with NvChad #16

Open ahmetkca opened 7 months ago

ahmetkca commented 7 months ago

I don't know where to initialize the installed plugin with cmp?

tomaszferens commented 7 months ago

Here is how I did it:

lua/custom/configs/tailwindcss-colorizer-cmp.lua

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

lua/custom/plugins.lua

  {
    "roobert/tailwindcss-colorizer-cmp.nvim",
    lazy = false,
    config = function()
      require("tailwindcss-colorizer-cmp").setup({})
      require "custom.configs.tailwindcss-colorizer-cmp"
    end
  }

I have some UI glitch tho:

image

the selected option in a select box contains "XX" characters for some reason 🤔

ahmetkca commented 7 months ago

Thanks a lot. I am new to neovim and NvChad. I am still trying to adapt to code first configuration.

Deeepkk1 commented 5 months ago

@tomaszferens found any way to remove the "XX" ?

Deeepkk1 commented 5 months ago

I changed terminal , and it fixed the "XX" issue. foot -> wezterm

niksingh710 commented 4 months ago

@tomaszferens

the selected option in a select box contains "XX" characters for some reason 🤔

i guess it is because of the current selection is having different highlight. as i noticed every selection is having XX but the plugin put the color over it as highlight. now when we have the current one selected the selection highlight overrides it. there should be a solution to ignore highlight for current selection if it is for tailwind but unsure how to get that.

ItsTerm1n4l commented 4 months ago

Doesn't work for me :/ Do I need some language server enabled? Edit: Fixed! I installed tailwindcss-language-server with Mason and enabled it with lsp-config!

emretuna commented 4 months ago

ution to ignore highlight for current selection if it is for tailwind but unsure how to get that.

Having the same issue, any solutions?