Skip to content

Commit

Permalink
fix: switch undercurl -> underline for some lsp features
Browse files Browse the repository at this point in the history
  • Loading branch information
ptdewey committed Oct 15, 2024
1 parent 14369f8 commit 680dd3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
18 changes: 9 additions & 9 deletions colors/darkearth.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- colors/colorscheme.lua

local colors = {
-- content here will not be touched
-- PATCH_OPEN
-- content here will not be touched
-- PATCH_OPEN
Normal = {fg = "#D7C484", bg = "#24211E"},
CmpItemKindText = {link = "Normal"},
CmpItemKindVariable = {link = "Normal"},
Expand Down Expand Up @@ -180,10 +180,10 @@ LazyValue = {},
LineNr = {fg = "#77824A", bg = "#221F1C"},
LspBorderBG = {fg = "#675642", bg = "#24211E"},
LspFloatWinNormal = {fg = "#D7C484", bg = "#444A2B"},
LspReferenceRead = {fg = "#5F865F", sp = "#FD9621", bold = true, undercurl = true},
LspReferenceText = {fg = "#D7C484", bg = "#444A2B", sp = "#FD9621", bold = true, undercurl = true},
LspReferenceWrite = {fg = "#5F865F", sp = "#FD9621", bold = true, undercurl = true},
LspSignatureActiveParameter = {sp = "#FBEB9D", bold = true, italic = true, underline = true},
LspReferenceRead = {fg = "#5F865F", sp = "#FD9621", underline = true},
LspReferenceText = {fg = "#D7C484", bg = "#444A2B", sp = "#FD9621", underline = true},
LspReferenceWrite = {fg = "#5F865F", sp = "#FD9621", underline = true},
LspSignatureActiveParameter = {sp = "#FBEB9D", italic = true, underline = true},
MasonError = {},
MasonHeader = {fg = "#D7C484", bg = "#221F1C"},
MasonHeading = {},
Expand Down Expand Up @@ -447,8 +447,8 @@ xmlTagName = {fg = "#77824A"},
xmlString = {link = "xmlTagName"},
["@markup.link"] = {fg = "#77824A"},
["@punctuation.special"] = {fg = "#77824A"},
-- PATCH_CLOSE
-- content here will not be touched
-- PATCH_CLOSE
-- content here will not be touched
}

-- colorschemes generally want to do this
Expand All @@ -458,5 +458,5 @@ vim.cmd("let g:colors_name='darkearth'")

-- apply highlight groups
for group, attrs in pairs(colors) do
vim.api.nvim_set_hl(0, group, attrs)
vim.api.nvim_set_hl(0, group, attrs)
end
14 changes: 6 additions & 8 deletions lush_theme/darkearth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ local theme = lush(function(injected_functions)
sym("@lsp.type.enumMember")({ Constant }),
rubyConstant({ Constant }),
vimHiAttrib({ Constant }),
-- Number { fg=hsl(71, 27, 40), }, -- NOTE: original
-- Number { fg=hsl(60, 20, 50), },
-- Number { fg=hsl(40, 55, 60), },
-- Number { fg=hsl(300, 10, 55), },
Number({ fg = hsl(15, 40, 50) }),
Float({ Number }),
sym("@number")({ Number }),
Expand All @@ -148,6 +144,7 @@ local theme = lush(function(injected_functions)
Field({ fg = hsl(26, 47, 50) }),
sym("@field")({ Field }),
sym("@property")({ Field }),
-- sym("@property")({ fg = "#af875e" }), -- light brown (maybe move this to string?)
sym("@variable")({ Identifier }),
sym("@namespace")({ Identifier }),
sym("@lsp.type.parameter")({ Identifier }),
Expand All @@ -171,6 +168,7 @@ local theme = lush(function(injected_functions)
Macro({ PreProc }),
PreCondit({ PreProc }),
sym("@preproc")({ PreProc }),
-- Type({ fg = "#87875f" }),
Type({ fg = hsl(72, 27, 40) }),
StorageClass({ Type }),
Structure({ Type }),
Expand Down Expand Up @@ -370,23 +368,23 @@ local theme = lush(function(injected_functions)
LspFloatWinNormal({ fg = hsl(46, 51, 68), bg = hsl(72, 27, 23) }),
LspReferenceRead({
fg = hsl(120, 17, 45),
gui = "bold,undercurl",
gui = "underline",
sp = hsl(32, 98, 56),
}),
LspReferenceText({
fg = hsl(46, 51, 68),
gui = "bold,undercurl",
gui = "underline",
bg = hsl(72, 27, 23),
sp = hsl(32, 98, 56),
}),
LspReferenceWrite({
fg = hsl(120, 17, 45),
gui = "bold,undercurl",
gui = "underline",
sp = hsl(32, 98, 56),
}),
LspSignatureActiveParameter({
gui = "bold,underline,italic",
sp = hsl(50, 92, 80),
gui = "underline,italic",
}),
TelescopeSelectionCaret({ fg = hsl(46, 51, 68), bg = hsl(71, 27, 40) }),
TelescopeBorder({ fg = hsl(33, 22, 33), bg = lnbg }),
Expand Down

0 comments on commit 680dd3b

Please sign in to comment.