shaunsingh / nord.nvim

Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
GNU General Public License v2.0
844 stars 110 forks source link

Is it possible to override local syntax highlight group? #54

Closed VKondakoff closed 3 years ago

VKondakoff commented 3 years ago

Hi!

Is it possible to override local syntax highlight group? I'm trying to make statusline of the active window a little bit brighter. One can modify the StatusLine in theme.lua. But is possible to override its value in init.lua?

I have (unsuccessfully) tried something like this:

use {
    'shaunsingh/nord.nvim',
    config = function() 
      vim.cmd[[colorscheme nord]]
      vim.g.nord_italic = true
      StatusLine = { fg = nord.nord4_gui, bg = nord.nord2_gui }
  end,
  }

What is the correct way to override StatusLine?

Thank you!

VKondakoff commented 3 years ago

Ok, was able to solve this:

vim.cmd([[
      colorscheme nord
      highlight StatusLine guifg=#D8DEE9  guibg=#5E81AC
      ]])
shaunsingh commented 3 years ago

The theme itself has everything in lua tables, internally its just a fancy way of calling the hi statement you do with vim.cmd. Right now your way is the only way to solve it.