rmehri01/onenord.nvim

Override lualine onenord theme

Closed this issue · 3 comments

hey, cool colors.

I want to overwrite one of the option from within my init file, but I can't seem to find the syntax that would do this. Any ideas?

onenord.command = {
  a = { fg = colors.bg, bg = colors.yellow, gui = "bold" },
  b = { fg = colors.yellow, bg = colors.highlight },
}

Thanks! Have you tried something like this:

https://github.com/nvim-lualine/lualine.nvim#customizing-themes

I think you could just require("lualine.themes.onenord") instead and follow a similar pattern?

Thanks, this is the patch that fixed it in my dotfiles:

+local local_onenord = require'lualine.themes.onenord'
+local local_colors = require("onenord.colors")
+local_onenord.command.a.bg = local_colors.blue
+local_onenord.command.b.fg = local_colors.blue
+
+
 require'lualine'.setup {
   options = {
     icons_enabled = true,
-    theme = 'onenord',
+    theme = local_onenord,

No problem!