Skip to content

Commit bd19abd

Browse files
authored
feat(themes): link @boolean to Boolean (#73)
1 parent c633659 commit bd19abd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lua/one_monokai/themes/groups.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
---@class groups
12
local groups = {}
23

34
local colors = require "one_monokai.colors"
45
local config = require "one_monokai.config"
56

6-
---@class group
7-
groups.default = {
7+
---@type groups
8+
local defaults = {
89
Boolean = { fg = colors.cyan },
910
Character = { fg = colors.yellow },
1011
Constant = { fg = colors.aqua },
@@ -83,7 +84,7 @@ groups.default = {
8384
-- treesitter
8485
["@annotation"] = { link = "PreProc" },
8586
["@attribute"] = { link = "PreProc" },
86-
["@boolean"] = { fg = colors.cyan },
87+
["@boolean"] = { link = "Boolean" },
8788
["@character"] = { link = "Character" },
8889
["@character.special"] = { link = "SpecialChar" },
8990
["@comment"] = { link = "Comment" },
@@ -503,9 +504,11 @@ groups.default = {
503504
-- hide all semantic highlights by default,
504505
-- only enable those from the default table
505506
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] = {}
508509
end
509510
end
510511

511-
return groups.default
512+
groups = vim.deepcopy(defaults)
513+
514+
return groups

0 commit comments

Comments
 (0)