RRethy / base16-nvim

Neovim plugin for building a sync base16 colorscheme. Includes support for Treesitter and LSP highlight groups.
MIT License
523 stars 77 forks source link

Adding details about `with_config` function to docs #63

Closed krish-r closed 1 year ago

krish-r commented 2 years ago

Hi,

I found about with_config function while searching the issues. Looks like this isn't documented in the README or help doc.

Can you consider adding it to the docs for visibility?

-- To disable highlights for supported plugin(s), call the `with_config` function **before** setting the colorscheme.

-- default options
require('base16-colorscheme').with_config({
    telescope = true,
    indentblankline = true,
    notify = true,
    ts_rainbow = true,
    cmp = true,
    illuminate = true,
})

Also, about accessing colors from colorscheme

-- You can get the colors **after** setting the colorscheme by -
local color = require('base16-colorscheme').colors.base0X -- (where X can be 0 - 9 or A - F)

Thanks