Skip to content

Commit

Permalink
feat(highlights): add neotest support (#29)
Browse files Browse the repository at this point in the history
* Initial commit

* remove dark SignColumn and refactor

* latest based on feedback

---------

Co-authored-by: windowsrefund <mtf8>
  • Loading branch information
windowsrefund authored May 25, 2024
1 parent 825e7f9 commit 77fa9d0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A colorscheme for [Neovim](https://github.com/neovim/neovim). Pleasant and produ
- [Neorg](https://github.com/nvim-neorg/neorg)
- [Nvim-notify](https://github.com/rcarriga/nvim-notify)
- [Aerial](https://github.com/stevearc/aerial.nvim)
- [Neotest](https://github.com/nvim-neotest/neotest)

## Installation and usage
Example with [packer.nvim](https://github.com/wbthomason/packer.nvim):
Expand Down
1 change: 1 addition & 0 deletions lua/mellifluous/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ local config = {
neorg = true,
nvim_notify = true,
aerial = true,
neotest = true,
},
dim_inactive = false,
styles = {
Expand Down
25 changes: 25 additions & 0 deletions lua/mellifluous/highlights/plugins/neotest.lua
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

0 comments on commit 77fa9d0

Please sign in to comment.