diff options
| author | SeniorMars <cjh16@rice.edu> | 2023-04-06 11:57:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-06 13:57:59 -0300 |
| commit | 53bfb95b1ed1d87f6a276abdd322b267be0b5adf (patch) | |
| tree | 9e51d2a92b07479f059d6dfe541e856dec760cbe /lua | |
| parent | 9f983e5d52f13f94e022e59906cb9ae1d67714bb (diff) | |
| download | gruvbox-53bfb95b1ed1d87f6a276abdd322b267be0b5adf.tar.gz gruvbox-53bfb95b1ed1d87f6a276abdd322b267be0b5adf.tar.xz | |
added semantic (#211)
Co-authored-by: Ellison <ellisonleao@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/gruvbox/groups.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lua/gruvbox/groups.lua b/lua/gruvbox/groups.lua index caefbf2..68182ce 100644 --- a/lua/gruvbox/groups.lua +++ b/lua/gruvbox/groups.lua @@ -183,6 +183,19 @@ M.setup = function() LspReferenceText = { link = "GruvboxYellowBold" }, LspReferenceWrite = { link = "GruvboxOrangeBold" }, LspCodeLens = { link = "GruvboxGray" }, + + -- semantic token + -- adapted from https://github.com/jdrouhard/neovim/blob/9f035559defd9d575f37fd825954610065d9cf96/src/nvim/highlight_group.c#L267 + ["@class"] = { link = "@constructor" }, + ["@decorator"] = { link = "Identifier" }, + ["@enum"] = { link = "@constructor" }, + ["@enumMember"] = { link = "Constant" }, + ["@event"] = { link = "Identifier" }, + ["@interface"] = { link = "Identifier" }, + ["@modifier"] = { link = "Identifier" }, + ["@regexp"] = { link = "SpecialChar" }, + ["@struct"] = { link = "@constructor" }, + ["@typeParameter"] = { link = "Type" }, -- nvim-treesitter (0.8 compat) -- Adapted from https://github.com/nvim-treesitter/nvim-treesitter/commit/42ab95d5e11f247c6f0c8f5181b02e816caa4a4f#commitcomment-87014462 ["@annotation"] = { link = "Operator" }, |
