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

Override palette in config #1394

Open
GordianDziwis opened this issue Jun 26, 2024 · 1 comment
Open

Override palette in config #1394

GordianDziwis opened this issue Jun 26, 2024 · 1 comment

Comments

@GordianDziwis
Copy link

Is your feature request related to a problem? Please describe.
The heuristics for defining the base palette do not work for my color schema.

Describe the solution you'd like
Being able to set the base palette as a config option

Describe alternatives you've considered
Hard-code my palette in hl.lua

local function make_palette()
  local bg     = Color.from_hex(get_bg("Normal") or "#151515")
  local fg     = Color.from_hex("#D0D0D0")
  local red    = Color.from_hex("#FF0086")
  local orange = Color.from_hex("#FD8900")
  local yellow = Color.from_hex("#ABA800")
  local green  = Color.from_hex("#00C918")
  local cyan   = Color.from_hex("#1FAAAA")
  local blue   = Color.from_hex("#3777E6")
  local purple = Color.from_hex("#AD00A1")

  local config = require("neogit.config")

  local bg_factor = vim.o.bg == "dark" and 1 or -1
...
@CKolkey
Copy link
Member

CKolkey commented Jun 26, 2024

Reasonable enough, sure.

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