We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfd14d3 + 51dfe64 commit c63baefCopy full SHA for c63baef
lua/css-vars/init.lua
@@ -12,9 +12,9 @@ M.setup = function(cfg)
12
13
local args = {
14
"-e",
15
- "[^\\w](--[^:)]*):",
+ "[^\\w](--[^:)]*):([^;]+);",
16
"-r",
17
- "'$1'",
+ "'$1' '$2'",
18
"-o",
19
"--no-filename",
20
}
@@ -62,7 +62,7 @@ M.setup = function(cfg)
62
local items = {}
63
local processed = {}
64
for _, item in pairs(result) do
65
- local css_var = (item:gsub("'%-(.*)'", "%1"))
+ local css_var, css_value = item:match("^'%-(.-)' '(.-)'")
66
if processed[css_var] then
67
goto continue
68
end
@@ -71,6 +71,7 @@ M.setup = function(cfg)
71
filterText = css_var,
72
label = "-" .. css_var,
73
kind = 6,
74
+ documentation = css_value,
75
textEdit = {
76
newText = css_var,
77
range = {
0 commit comments