nvim-scrollbar icon indicating copy to clipboard operation
nvim-scrollbar copied to clipboard

[Question] How to configure colors?

Open rools32 opened this issue 2 years ago • 2 comments

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.

rools32 avatar Oct 18 '23 22:10 rools32

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.

vinoff avatar Feb 09 '24 15:02 vinoff