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 colors in lua (neovim) #319

Open
pierot opened this issue Nov 4, 2022 · 0 comments
Open

Override colors in lua (neovim) #319

pierot opened this issue Nov 4, 2022 · 0 comments

Comments

@pierot
Copy link

pierot commented Nov 4, 2022

Issue Description

I'd like to override the some colors of the theme.
I had a config for neovim in vimscript but I'd like to convert this to lua.

I came up with this, but it has no effect.

vim.g.onedark_color_overrides = {
  background = { gui = "#1a1a1a", cterm = "235", cterm16 = "NONE" },
  black = { gui = "#1a1a1a", cterm = "235", cterm16 = "NONE" },
  foreground = { gui = "#f5f7fc", cterm = "145", cterm16 = "15" },
  white = { gui = "#f5f7fc", cterm = "145", cterm16 = "15" },
  blue = { gui = "#32a4ec", cterm = "39", cterm16 = "4" },
  red = { gui = "#f96874", cterm = "204", cterm16 = "1" },
  dark_red = { gui = "#eb6559", cterm = "196", cterm16 = "9" },
  green = { gui = "#a0e470", cterm = "114", cterm16 = "2" },
  yellow = { gui = "#f7ec4a", cterm = "180", cterm16 = "3" },
  purple = { gui = "#d375f0", cterm = "170", cterm16 = "5" },
  cyan = { gui = "#38ebf2", cterm = "38", cterm16 = "6" },
  comment_grey = { gui = "#7b8393", cterm = "59", cterm16 = "7" }
}

vim.o.termguicolors = true
vim.cmd("colorscheme onedark")

What am I missing?

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

1 participant