js-everts / cmp-tailwind-colors Goto Github PK
View Code? Open in Web Editor NEWAdds tailwindcss color hints to nvim-cmp completion results
License: MIT License
Adds tailwindcss color hints to nvim-cmp completion results
License: MIT License
I'm having trouble integrating cmp-tailwind-colors with my LazyVim config. I tried integrating it alongside the default LazyVim icons, but I keep getting an error. I'm not very familiar with Lua, so I was wondering if someone could help me out.
Here's the formatting section of my nvim-cmp configuration:
formatting = {
-- format = require("cmp-tailwind-colors").format
format = function(_, item)
local icons = require("lazyvim.config").icons.kinds
if icons[item.kind] then
item.kind = icons[item.kind] .. item.kind
end
return item
end,
},
Any help would be greatly appreciated.
If the location of the star signifies the place that triggers the error, then the following query shadow-white/*
raises the error mentioned in the title. The error points to https://github.com/js-everts/cmp-tailwind-color/blob/1d8dbec8549871914b536473249b9524f778f799/lua/cmp-tailwind-colors/init.lua#L78
Adding
hl_opts.blend = tonumber(hl_opts.blend, 2)
before the call to vim.api.nvim_set_hl
fixes the issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.