|
| 1 | +---@class groups |
1 | 2 | local groups = {} |
2 | 3 |
|
3 | 4 | local colors = require "one_monokai.colors" |
4 | 5 | local config = require "one_monokai.config" |
5 | 6 |
|
6 | | ----@class group |
7 | | -groups.default = { |
| 7 | +---@type groups |
| 8 | +local defaults = { |
8 | 9 | Boolean = { fg = colors.cyan }, |
9 | 10 | Character = { fg = colors.yellow }, |
10 | 11 | Constant = { fg = colors.aqua }, |
@@ -83,7 +84,7 @@ groups.default = { |
83 | 84 | -- treesitter |
84 | 85 | ["@annotation"] = { link = "PreProc" }, |
85 | 86 | ["@attribute"] = { link = "PreProc" }, |
86 | | - ["@boolean"] = { fg = colors.cyan }, |
| 87 | + ["@boolean"] = { link = "Boolean" }, |
87 | 88 | ["@character"] = { link = "Character" }, |
88 | 89 | ["@character.special"] = { link = "SpecialChar" }, |
89 | 90 | ["@comment"] = { link = "Comment" }, |
@@ -503,9 +504,11 @@ groups.default = { |
503 | 504 | -- hide all semantic highlights by default, |
504 | 505 | -- only enable those from the default table |
505 | 506 | for _, semantic_group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do |
506 | | - if not groups.default[semantic_group] then |
507 | | - groups.default[semantic_group] = {} |
| 507 | + if not defaults[semantic_group] then |
| 508 | + defaults[semantic_group] = {} |
508 | 509 | end |
509 | 510 | end |
510 | 511 |
|
511 | | -return groups.default |
| 512 | +groups = vim.deepcopy(defaults) |
| 513 | + |
| 514 | +return groups |
0 commit comments