-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Configurable TabLine italics styling #14
Comments
Make sense. For now, you can simply override the highlight with the help of lush. colorscheme zenflesh
lua << EOF
local lush = require "lush"
local base = require "zenflesh"
local specs = lush.parse(function()
return {
TabLine { bg = base.TabLine.bg, fg = base.TabLine.fg, gui = nil }, -- setting gui to nil, not "italic"
}
end)
lush.apply(lush.compile(specs))
EOF The snippet just creates a small lush specs then applies it. This is more flexible and allows you to add more overrides if you want. It's actually just simply: TabLine { base.TabLine, gui = nil }, But not sure why it's not being accepted by lush. |
Thank you for the snippet, I didn't realize it's that simple 👍 |
As a follow up, there is a better way to apply overrides and I'll probably document it as the recommended way.
local function customize_zenbones()
local colors_name = vim.g.colors_name
if colors_name ~= "zenbones" and colors_name ~= "zenbones-lush" then
return
end
local lush = require "lush"
local base = require "zenbones"
local specs = lush.parse(function()
return {
TabLine { base.TabLine, gui = "NONE" }, -- setting gui to "NONE", not "italic"
}
end)
lush.apply(lush.compile(specs))
end
return customize_zenbones Somewhere in your config: autocmd VimEnter,ColorScheme * lua require("customize_zenbones")() |
Hello, thanks for the great scheme.
I've noticed you recently added Zenflesh variant and also the ability to enable/disable italics for comments.
Would you consider to do the same for TabLine? https://github.com/mcchrish/zenbones.nvim/blob/4cd223c9a27d8f73219c529eefc3c4d6f949edad/lua/zenbones/init.lua#L95
The text was updated successfully, but these errors were encountered: