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

feat: add SmartOpenDirectory hlgroup to enable user customization #66

Closed
wants to merge 0 commits into from

Conversation

smjonas
Copy link

@smjonas smjonas commented May 17, 2024

Closes #65.

@danielfalk danielfalk changed the base branch from main to 0.2.x May 31, 2024 17:26
@danielfalk danielfalk changed the base branch from 0.2.x to main May 31, 2024 17:27
@danielfalk
Copy link
Owner

I was just testing this out, and it appears to remove the "Directory" highlighting. I take it your colorscheme has a color defined for SmartOpenDirectory, so it looks fine for you?

Here's how it usually looks:
image

and here's how it looks with this PR applied:
image

@smjonas
Copy link
Author

smjonas commented May 31, 2024

This is how it looks for me with the tokyonight colorscheme (which does not define a SmartOpenDirectory highlight):
image

Changing the Directory hlgroup to red (:highlight Directory guifg=red) yields this, as before (which is expected):
image

So I am unsure what causes the issues for you. Which colorscheme are you using?

@danielfalk
Copy link
Owner

I figured it out. I happen to have a script that set a colorscheme, and it runs after this plugin is initialized. I believe the solution is to create an autocmd. Let me see if I can do that.

@danielfalk
Copy link
Owner

This is now available in 0.3.x . Thanks!

@smjonas smjonas deleted the hlgroup branch October 17, 2024 19:05
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.

Custom highlight group for directories
2 participants