Closed dannyfritz closed 7 months ago
@dannyfritz I'm able to reproduce the issue and I think the issue is with lush. It works with using plain nvim_set_hl
api.
vim.api.nvim_create_autocmd({ "ColorScheme" }, {
pattern = "neobones",
callback = function(params)
require("mcchrish.statusline").setup(params.match)
local base = require(params.match)
vim.api.nvim_set_hl(0, "Constant", { fg = base.Constant.fg.hex })
vim.api.nvim_set_hl(0, "Number", { fg = base.Number.fg.hex })
end,
})
Which makes it simpler actually. Alternatively, you can also use nvim_get_hl
and nvim_set_hl
combo to modify highlights too.
@mcchrish thank you. The snippet you provided everything I need.
That seems to be working for me:
local specs = lush.parse(function()
return {
Constant { base.Constant, gui = '' }
}
end)
lush.apply(lush.compile(specs))
I'm using LazyVim and I've been trying to get Lush working for a while now. Any tips for how to disable the italics for numbers and strings? Trying to follow this guide: https://github.com/mcchrish/zenbones.nvim/blob/v3.1.0/doc/zenbones.md#extendoverride-highlights