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

[Question] How to configure colors? #100

Open
rools32 opened this issue Oct 18, 2023 · 1 comment
Open

[Question] How to configure colors? #100

rools32 opened this issue Oct 18, 2023 · 1 comment

Comments

@rools32
Copy link

rools32 commented Oct 18, 2023

I put the following configuration in my vimrc file:

require("scrollbar").setup({
    handle = {
        color = "#292e42",
    },
    marks = {
      Search = { color = "#ff9e64" },
      Error = { color = "#db4b4b" },
      Warn = { color = "#e0af68" },
      Info = { color = "#0db9d7" },
      Hint = { color = "#1abc9c" },
      Misc = { color = "#9d7cd8" },
      GitAdd = { text = "+", color="#ffffff" },
      GitChange = { text = "~", color="#ffffff" },
      GitDelete = { text = "-", color="#ffffff" },
  }
})
require('gitsigns').setup()
require("scrollbar.handlers.gitsigns").setup()

It works as expected if I also have colorscheme tokyonight-night.
But, I do not know how to have the color setup working, without the colorscheme line.

Thank you.

@vinoff
Copy link

vinoff commented Feb 9, 2024

Did you find out how to do this? I am also interested in using RGB color codes.

EDIT: One way to do it is to set a variable, for example local red = "#fb4934", before the require line.

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

2 participants