smart-open.nvim icon indicating copy to clipboard operation
smart-open.nvim copied to clipboard

feat: add SmartOpenDirectory hlgroup to enable user customization

Open smjonas opened this issue 1 year ago • 2 comments

Closes #65.

smjonas avatar May 17 '24 21:05 smjonas

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

danielfalk avatar May 31 '24 17:05 danielfalk

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?

smjonas avatar May 31 '24 21:05 smjonas

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 avatar Oct 15 '24 13:10 danielfalk

This is now available in 0.3.x . Thanks!

danielfalk avatar Oct 15 '24 13:10 danielfalk