-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(highlights): add neotest support (#29)
* Initial commit * remove dark SignColumn and refactor * latest based on feedback --------- Co-authored-by: windowsrefund <mtf8>
- Loading branch information
1 parent
825e7f9
commit 77fa9d0
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
local M = {} | ||
|
||
function M.set(hl, colors) | ||
local config = require("mellifluous.config").config | ||
|
||
hl.set("NeotestAdapterName", { fg = colors.fg3 }) | ||
hl.set("NeotestFocused", { fg = hl.get("Normal").fg, bold = true }) | ||
hl.set("NeotestTarget", { style = { underline = true } }) | ||
hl.set("NeotestIndent", { fg = colors.fg4 }) | ||
hl.set("NeotestExpandMarker", { link = "NeotestIndent" }) | ||
|
||
hl.set("NeotestDir", { fg = hl.get("Directory").fg }) | ||
hl.set("NeotestFile", { fg = colors.fg2 }) | ||
hl.set("NeotestNamespace", { link = "@namesapce" }) | ||
|
||
hl.set("NeotestTest", { fg = colors.fg }) | ||
hl.set("NeotestRunning", { fg = hl.get("Function").fg }) | ||
hl.set("NeotestPassed", { link = "@markup.list.checked" }) | ||
hl.set("NeotestFailed", { fg = colors.ui_red }) | ||
hl.set("NeotestSkipped", { fg = colors.fg }) | ||
hl.set("NeotestUnknown", { fg = colors.fg }) | ||
hl.set("NeotestMarked", { bg = (config.is_bg_dark and colors.bg5) or colors.bg4 }) | ||
end | ||
|
||
return M |