option to disable italic comments
This commit is contained in:
@@ -85,6 +85,10 @@ highlight.
|
||||
|
||||
Set to `v:true` to make non-current window background dimmer than _Normal_.
|
||||
|
||||
#### g:zenbones_italic_comments
|
||||
|
||||
Set to `v:false` to make comments not italicize.
|
||||
|
||||
## Advanced Usage
|
||||
|
||||
Zenbones is pretty extensible thanks to Lush. You can easily retrieve the colors
|
||||
|
||||
@@ -16,6 +16,8 @@ elseif lightness ~= nil then
|
||||
vim.api.nvim_echo({ { error_msg, "WarningMsg" } }, true, {})
|
||||
end
|
||||
|
||||
local italic_comments = type(vim.g.zenbones_italic_comments) == "boolean" and vim.g.zenbones_italic_comments or true
|
||||
|
||||
-- stylua: ignore start
|
||||
local theme = lush(function()
|
||||
return {
|
||||
@@ -41,7 +43,7 @@ local theme = lush(function()
|
||||
ErrorMsg { Error }, -- error messages on the command line
|
||||
WarningMsg { fg = c.wood }, -- warning messages
|
||||
|
||||
Comment { fg = c.sand.da(38).de(28), gui = "italic" }, -- any comment
|
||||
Comment { fg = c.sand.da(38).de(28), gui = (italic_comments and "italic" or "NONE") }, -- any comment
|
||||
Conceal { fg = c.stone.li(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
|
||||
|
||||
Cursor { bg = c.stone, fg = c.sand.li(20) }, -- character under the cursor
|
||||
|
||||
@@ -16,6 +16,8 @@ elseif darkness ~= nil then
|
||||
vim.api.nvim_echo({ { error_msg, "WarningMsg" } }, true, {})
|
||||
end
|
||||
|
||||
local italic_comments = type(vim.g.zenflesh_italic_comments) == "boolean" and vim.g.zenflesh_italic_comments or true
|
||||
|
||||
-- stylua: ignore start
|
||||
local theme = lush(function()
|
||||
return {
|
||||
@@ -41,7 +43,7 @@ local theme = lush(function()
|
||||
ErrorMsg { Error }, -- error messages on the command line
|
||||
WarningMsg { fg = c.wood }, -- warning messages
|
||||
|
||||
Comment { fg = c.sand.li(32).de(48), gui = "italic" }, -- any comment
|
||||
Comment { fg = c.sand.li(32).de(48), gui = (italic_comments and "italic" or "NONE") }, -- any comment
|
||||
Conceal { fg = c.stone.da(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
|
||||
|
||||
Cursor { bg = c.stone.li(20), fg = c.sand.da(20) }, -- character under the cursor
|
||||
|
||||
Reference in New Issue
Block a user