fix: invalid character in group name 0.7 neovim version (#18)
This commit is contained in:
@@ -198,6 +198,10 @@ hl.plugins.treesitter = {
|
|||||||
commentTSDanger = hl.predef.RedItalic,
|
commentTSDanger = hl.predef.RedItalic,
|
||||||
commentTSNote = hl.predef.BlueItalic,
|
commentTSNote = hl.predef.BlueItalic,
|
||||||
commentTSWarning = hl.predef.YellowItalic,
|
commentTSWarning = hl.predef.YellowItalic,
|
||||||
|
}
|
||||||
|
|
||||||
|
if u.check_min_version(0, 8, 0) then
|
||||||
|
hl.plugins.treesitter = {
|
||||||
["@comment"] = { link = "Comment" },
|
["@comment"] = { link = "Comment" },
|
||||||
["@error"] = { link = "Error" },
|
["@error"] = { link = "Error" },
|
||||||
["@none"] = { bg = "NONE", fg = "NONE" },
|
["@none"] = { bg = "NONE", fg = "NONE" },
|
||||||
@@ -270,7 +274,7 @@ hl.plugins.treesitter = {
|
|||||||
["@tag.delimiter"] = { link = "Delimiter" },
|
["@tag.delimiter"] = { link = "Delimiter" },
|
||||||
}
|
}
|
||||||
|
|
||||||
hl.plugins.cmp = {
|
hl.plugins.lsp_semantic_tokens = {
|
||||||
LspNamespace = { link = "@namespace" },
|
LspNamespace = { link = "@namespace" },
|
||||||
LspType = { link = "@type" },
|
LspType = { link = "@type" },
|
||||||
LspClass = { link = "@type" },
|
LspClass = { link = "@type" },
|
||||||
@@ -296,6 +300,7 @@ hl.plugins.cmp = {
|
|||||||
LspDecorator = { link = "@symbol" },
|
LspDecorator = { link = "@symbol" },
|
||||||
LspDeprecated = { link = "@text.strike" },
|
LspDeprecated = { link = "@text.strike" },
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
hl.plugins.cmp = {
|
hl.plugins.cmp = {
|
||||||
CmpItemKindDefault = { fg = p.blue, bg = p.none },
|
CmpItemKindDefault = { fg = p.blue, bg = p.none },
|
||||||
|
|||||||
@@ -38,4 +38,19 @@ function U.color_gamma(hex, gamma)
|
|||||||
return string.format("#%02x%02x%02x", r, g, b)
|
return string.format("#%02x%02x%02x", r, g, b)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function U.check_min_version(major, minor, patch)
|
||||||
|
local version = vim.version()
|
||||||
|
local current_major = version.major
|
||||||
|
local current_minor = version.minor
|
||||||
|
local current_patch = version.patch
|
||||||
|
if current_major > major then
|
||||||
|
return true
|
||||||
|
elseif current_major == major and current_minor > minor then
|
||||||
|
return true
|
||||||
|
elseif current_major == major and current_minor == minor and current_patch >= patch then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
return U
|
return U
|
||||||
|
|||||||
Reference in New Issue
Block a user