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

Adding netrw to sidebars has no effect #239

Closed
ghost opened this issue Apr 11, 2023 · 6 comments
Closed

Adding netrw to sidebars has no effect #239

ghost opened this issue Apr 11, 2023 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2023

Below config does not change anything for netrw:

require('github-theme').setup({
    theme_style = "dark_default",
    sidebars = { "netrw" },
})

If I override bg_sidebar then every window's background changes:

require('github-theme').setup({
    theme_style = "dark_default",
    sidebars = { "netrw" },
    colors = { bg_sidebar = "#000000" },
})

And this one also has no effect at all:

require('github-theme').setup({
    theme_style = "dark_default",
    colors = { bg_sidebar = "#000000" },
})
@ful1e5
Copy link
Member

ful1e5 commented Apr 11, 2023

@dr4gut Which branch are you using, main or v0.0.x?

@ghost
Copy link
Author

ghost commented Apr 11, 2023

@dr4gut Which branch are you using, main or v0.0.x?

@ful1e5 Tried both master and v0.0.7. Results are the same

@ful1e5
Copy link
Member

ful1e5 commented May 3, 2023

The issue has been resolved in 4d5a4ce. Please use the following updated configuration:

require('github-theme').setup({
  options = {
    darken = {
      sidebars = {
        enable = true,
        list = { 'netrw' },
      },
    },
  },
})

vim.cmd.colorscheme('github_dark')

@ful1e5 ful1e5 closed this as completed May 3, 2023
@ghost
Copy link
Author

ghost commented May 3, 2023

@ful1e5 so I'm trying this out but I did not get what I expected. Do I maybe understand this feature wrong? I'd expect the netrw window on the left to have a darker background.

image

I am on master:

image

@ful1e5
Copy link
Member

ful1e5 commented May 5, 2023

@dr4gut I can't reproduce it. I'm accessing netrw with the :Explore command, and it has a dark background. Could you please share your github-theme and netrw configurations or the steps to reproduce it?

@ghost
Copy link
Author

ghost commented May 5, 2023

@ful1e5 I clean installed linux and neovim (for other reasons :)) but this problem went away too. Thanks.

ful1e5 added a commit that referenced this issue May 16, 2023
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

No branches or pull requests

1 participant