summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/groups
diff options
context:
space:
mode:
authorAlex <49870662+ysomad@users.noreply.github.com>2023-11-07 23:34:07 +0400
committerGitHub <noreply@github.com>2023-11-07 20:34:07 +0100
commitcba991db027d696d99b15e6d3ea6f29f59ad2963 (patch)
tree7e3adad167bbb69ceecf764d406f7951ca71827b /lua/no-clown-fiesta/groups
parent0b49a2d3be84fe77655f10d196954fcbcc7b9b9f (diff)
Added support for Neotest (#30)
* feat: add support for neotest * Update NeotestFocused colors * Remove neotest comment
Diffstat (limited to 'lua/no-clown-fiesta/groups')
-rw-r--r--lua/no-clown-fiesta/groups/init.lua1
-rw-r--r--lua/no-clown-fiesta/groups/neotest.lua29
2 files changed, 30 insertions, 0 deletions
diff --git a/lua/no-clown-fiesta/groups/init.lua b/lua/no-clown-fiesta/groups/init.lua
index 9c6bd42..c7b9971 100644
--- a/lua/no-clown-fiesta/groups/init.lua
+++ b/lua/no-clown-fiesta/groups/init.lua
@@ -17,4 +17,5 @@ return {
require "no-clown-fiesta.groups.telescope",
require "no-clown-fiesta.groups.treesitter",
require "no-clown-fiesta.groups.whichkey",
+ require "no-clown-fiesta.groups.neotest",
}
diff --git a/lua/no-clown-fiesta/groups/neotest.lua b/lua/no-clown-fiesta/groups/neotest.lua
new file mode 100644
index 0000000..7264bff
--- /dev/null
+++ b/lua/no-clown-fiesta/groups/neotest.lua
@@ -0,0 +1,29 @@
+local M = {}
+
+function M.highlight(palette, opts)
+ return {
+ NeogitNotificationInfo = { fg = palette.sign_add },
+ NeogitNotificationWarning = { fg = palette.warning },
+ NeogitNotificationError = { fg = palette.sign_delete },
+ NeogitDiffAddHighlight = { fg = palette.sign_add, bg = palette.accent_green },
+ NeogitDiffDeleteHighlight = { fg = palette.sign_delete, bg = palette.accent_red },
+ NeogitDiffContextHighlight = { fg = palette.fg, bg = palette.alt_bg },
+ NeogitHunkHeader = { fg = palette.fg, bg = palette.alt_bg },
+ NeogitHunkHeaderHighlight = { fg = palette.fg, bg = palette.accent },
+ NeogitDiffAdd = { fg = palette.sign_add, bg = palette.accent_green },
+ NeogitDiffDelete = { fg = palette.sign_delete, bg = palette.accent_red },
+ NeotestAdapterName = { fg = palette.purple },
+ NeotestDir = { fg = palette.cyan },
+ NeotestExpandMarker = { fg = palette.gray },
+ NeotestFailed = { fg = palette.error },
+ NeotestFile = { fg = palette.cyan },
+ NeotestFocused = { bold = true },
+ NeotestIndent = { fg = palette.fg },
+ NeotestNamespace = { fg = palette.blue },
+ NeotestPassed = { fg = palette.green },
+ NeotestRunning = { fg = palette.yellow },
+ NeotestSkipped = { fg = palette.cyan },
+ }
+end
+
+return M