-
Notifications
You must be signed in to change notification settings - Fork 44
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
Bracket coloring in Lua files #1
Comments
No problem, I'm glad you like it! I believe that is intentional due to them being different in tree sitter. In Lua they are constructors while in JavaScript they are delimiters: onenord.nvim/lua/onenord/theme.lua Lines 369 to 370 in 73aef7f
onenord.nvim/lua/onenord/theme.lua Lines 412 to 417 in 73aef7f
I think that you can override |
I went ahead and added a way to overwrite any of the highlight groups so you can give it a try if you'd like: local colors = require("onenord.colors")
require("onenord").setup({
custom_highlights = {
TSConstructor = { fg = colors.dark_blue },
},
}) |
Thanks for the quick response @rmehri01 - unfortunately, this is still not overwriting
Have I just overlooked something? EDIT: Sorry, I think this is a problem on my end with Packer. |
Hey @zeitchef, I think you need to use use {
"rmehri01/onenord.nvim",
config = function()
local colors = require("onenord.colors")
require("onenord").setup({
custom_highlights = {
TSConstructor = { fg = colors.dark_blue },
},
})
end,
} |
Thanks @rmehri01 - you're right, of course. Unfortunately, this somehow doesn't work for my setup. The only way I got it to work was to manually override the highlight:
|
Hmm, I see. If you're okay with that then great but otherwise let me know if I can do anything else and I could give it a shot! |
I've been waiting for someone to merge these two color palettes, so thanks!
I've noticed that matching braces
{}
are colored differently in some files (yellow in Lua - see screenshot), as opposed to JavaScript files for instance. Is that intentional?If so, is there a way to override this behavior to have uniformity across all filetypes? Thanks!
The text was updated successfully, but these errors were encountered: