Closed gegoune closed 2 years ago
Could be added as an option maybe ? What do you think about this @maaslalani ?
I don't use any of those plugins/buffers (other than quickfix) so doesn't affect me, i think having a different background makes sense as long its not too drastic. If users complain, then could add an option like the minimal mode stuff. But yea up to you entirely, as long as it looks good 😄
Absolutely could be an option. Would be nice if there was an option to specify what should be styled as well.
Example: https://github.com/folke/tokyonight.nvim/search?q=sidebars
Would be nice if there was an option to specify what should be styled as well.
Indeed. Noted!
as long its not too drastic
Yeah... We'll definitively need a new color in the palette for this because the contrast will be rather extreme with the current choices imo (or maybe it's just because I'm totally not used to having different buffer backgrounds).
I'll look into this and get back to you @gegoune .
Here are two variants based on the background color, but stepped down 1 and 2 steps respectively :thinking:
Any preference ? Personally, I'm leaning towards the first variant because it's quite subtle.
I'm a fan of the first variant! Second one is a little too contrasting with the background.
Either one works for me to be honest. Thank you very much for super quick implementation!
I've opened a PR of this here: https://github.com/andersevenrud/nordic.nvim/pull/47
Just gotta figure out a nice way to add autocomands for special buffers because highlight groups doesn't cover things like the quickfix and terminals :thinking:
I've opened a PR of this here: #47
Just gotta figure out a nice way to add autocomands for special buffers because highlight groups doesn't cover things like the quickfix and terminals 🤔
You might need to check the filetype (filetype=qf
)
Yeah, it'll have to be an autocommand with the filetype set, which in turn sets the "Normal" highlight based on that. I think there's also a neovim native way to do this with set
. I vaguely remember coming across this at some point.
Actually, maybe the QuickFixLine
is what we need? and for terminal looks like Tokyonight uses an autocommand
QuickFixLine
is just the currently selected line in qf. I already tried this :sweat_smile:
But that autocommand has setlocal
which was the thing I was vaguely remembering!
The else-condition there also contains the recipe to cover terminal and a lot of other stuff as well. So thanks for that @maaslalani . I really wish that autocmd abstraction was a thing in the neovim Lua APIs by now, but seems like that won't land until 0.7 probably.... oh well :)
@maaslalani That did the trick! PR was updated with these changes :smile:
I have been running these changes all day and it all worked out, so I merged it. Keeping this open for a little bit in case there's any more places where this could be implemented.
Thank you very much, was using it today too and it works well.
Keeping this open for a little bit in case there's any more places where this could be implemented.
Think I caught everything in the PR. If not, let me know and I'll add it in quickly @gegoune .
I've also started making docs (https://github.com/andersevenrud/nordic.nvim/pull/51) on how all of this works, and I'll make sure to include how to do this alternate stuff there as well.
Thank you very much @andersevenrud, loving the scheme! (Go Magnus!)
Mainly background style for buffers such nvim-tree, vista, undo-tree or quickfix (etc). Seems to be popular recently and I quite liked it in other colorschemes. What do you think?