mirror of
https://github.com/gabehf/base46.git
synced 2026-03-08 23:18:15 -07:00
add semantic token related highlight groups
This commit is contained in:
parent
fc44f0372c
commit
a05577bf6b
1 changed files with 18 additions and 0 deletions
|
|
@ -116,4 +116,22 @@ local syntax = {
|
|||
}
|
||||
|
||||
local merge_tb = require("base46").merge_tb
|
||||
|
||||
if vim.version().minor == 9 then
|
||||
local semantic_hls = {
|
||||
["@class"] = { fg = theme.base0E },
|
||||
["@struct"] = { fg = theme.base0E },
|
||||
["@enum"] = { fg = theme.base0A },
|
||||
["@enumMember"] = { fg = theme.base08 },
|
||||
["@event"] = { fg = theme.base08 },
|
||||
["@interface"] = { fg = theme.base08 },
|
||||
["@modifier"] = { fg = theme.base08 },
|
||||
["@regexp"] = { fg = theme.base0F },
|
||||
["@typeParamater"] = { fg = theme.base0A },
|
||||
["@decorator"] = { fg = theme.base08 },
|
||||
}
|
||||
|
||||
syntax = merge_tb(syntax, semantic_hls)
|
||||
end
|
||||
|
||||
return merge_tb(syntax, require("base46").load_highlight "treesitter")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue