NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.62k stars 218 forks source link

Override palette in config #1394

Open GordianDziwis opened 1 week ago

GordianDziwis commented 1 week ago

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 commented 1 week ago

Reasonable enough, sure.