-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(highlights): neotest #29
Conversation
I refactored this around what I found in this theme and ended up removing the dark SignColumn in order to get past the previously mentioned inconsistency. I hope you'll consider the change. This also has a nice side-effect of the first indentation line looking nicer since it isn't "mashed up against" the once-darker column. |
Hey, sorry for the delay, this looks great, but I have some ideas on how it could be improved. I will look into it sometime at the end of the month, as I will have much more free time by then. |
I saw this PR right after posting #30. Sorry for the duplicate! Maybe it would be a good idea to pick ideas from both implementations? For example, the colored |
@@ -48,7 +48,7 @@ function M.set(hl, colors) | |||
or (config.flat_background.line_numbers and hl.get('Normal').bg) | |||
or colors.dark_bg | |||
}) -- Line number for ':number' and ':#' commands, and when 'number' or 'relativenumber' option is set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should leave this file unchanged. Default neovim setups have signcolumn to the left of numbercolumn, so this change will make it look inconsistent when signcolumn is between file-tree and numbercolumn, both of which have darker backgrounds.
Hey @windowsrefund @antoineco, this is what I've arrived at after considering your suggestions: local config = require('mellifluous.config').config
hl.set('NeotestAdapterName', { fg = colors.fg3 })
hl.set('NeotestFocused', { fg = colors.fg, style = { 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 = '@namespace' })
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 }) I'm not a neotest user, so please tell me if something could be better. I like function for I have no idea what Edit: On second thought, we should only take the fg of |
I'm happy with those suggestions 👍 |
@ramojus Thank you for the help. Everything looks great but the background color in the signcolumn is not cohesive. That's what got me wanting to move away from the darker color. Here's where I'm at now after incorporating your update: It just seems to me like the darker signcolumn isn't exactly adding any real value while adding 2 problems:
If you'd prefer to settle on this, I can surely look into treating the signcolumn color as a personal preference and try to figure out how to override it. Thanks again |
Just one addition: the non-homogeneous background color of Neotest signs in signs columns with darker background is a known issue: IMO the colorscheme should ignore this and we should seek for a resolution upstream. @windowsrefund you can set this value to mellifluous.nvim/doc/mellifluous.txt Lines 87 to 88 in 454cb9f
|
@antoineco Thanks for pointing out the upstream issue. Couldn't agree more. As for the Thanks everyone for all the help. |
Oh, I did not notice this issue before. @windowsrefund if you just want to customize highlight_overrides = {
dark = function(hl, colors)
hl.set('SignColumn', { bg = colors.bg })
end,
} This will get applied after all of the other highlights though, so GitSigns will now look out of place. Feel free to open an issue for this, there should probably be a better solution. |
@ramojus Thank you for that tip. I had actually tried to configure that at some point but obviously failed. BTW, I just noticed both |
Disclaimer: I have no clue what I'm doing and just pulled bits in from other support files.
Looks decent but I don't know how to remedy the "chicken/egg" scenario involving the background color of signcolumn vs. the background color of the neotest window.