Skip to content
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

fix(mini): fix bg on MiniFilesFile and MiniPickPrompt #142

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

pkazmier
Copy link
Contributor

See echasnovski/mini.nvim#1043 for description and screenshots this PR resolves.

@pkazmier
Copy link
Contributor Author

I should have mentioned that I tested these changes on each theme in both dim and bright floating backgrounds to ensure the backgrounds match correctly for each theme. Thanks!

Copy link
Collaborator

@antoineco antoineco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing this! I only have one question / comment.

@@ -1324,6 +1324,7 @@ call everforest#highlight('InclineNormalNC', s:palette.grey1, s:palette.bg2)
" }}}
" echasnovski/mini.nvim {{{
call everforest#highlight('MiniAnimateCursor', s:palette.none, s:palette.none, 'reverse,nocombine')
call everforest#highlight('MiniFilesFile', s:palette.fg, s:palette.none)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why move highlights so far away from where they were originally defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the established convention in the Mini section where highlight groups that are defined via call everforest#highlight are all done before those that are simply defined via highlight! link. In each respective section, the highlight groups are ordered alphabetically, which I also honored.

For all of these PRs, I modified two highlight groups: MiniFilesFile and MiniPickPrompt. Both of which used to be defined as links, but now are explicitly defined. As such, I had to move their definitions from the "link" section to the "call" section.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright fair enough.
There is no clearly established convention regarding declaring function calls before links, and I think we should instead keep related highlights together regardless of whether they are links or not. But since things have been organized that way for mini.nvim, let's stick with that structure here 👍

@antoineco antoineco merged commit 0bfb220 into sainnhe:master Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants