navarasu / onedark.nvim

One dark and light colorscheme for neovim >= 0.5.0 written in lua based on Atom's One Dark and Light theme. Additionally, it comes with 5 color variant styles
MIT License
1.61k stars 163 forks source link

I've been trying to change the brackets color of functions, but don't work. Can you help me? #130

Open quattrococodrilo opened 1 year ago

quattrococodrilo commented 1 year ago

Hello. This is my configuration:

require('onedark').setup { 
   ...
   colors = {
        qtt_yellow = '#E5C07B',
        qtt_gray = '#ABB2BF',
  }
  highlights = {
        ["@punctuation.delimiter"] = { fg = "$qtt_gray", },
        ["@punctuation.bracket"] = { fg = "$qtt_yellow" },
    }, 
}

The function brackets stay in the default gray.

ribru17 commented 1 year ago

This works for me. Check if you have anything overriding the other bracket colors, also in lua the curly brackets are treated as a constructor so you may have to change @constructor.lua.