adjust comment handling

This commit is contained in:
Michael Chris Lopez
2021-10-04 17:05:17 +08:00
parent 5deeff212d
commit bd39d4144a
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ 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
local italic_comments = vim.g.zenbones_italic_comments ~= false and "italic" or nil
-- stylua: ignore start
local theme = lush(function()
@@ -43,7 +43,7 @@ local theme = lush(function()
ErrorMsg { Error }, -- error messages on the command line
WarningMsg { fg = p.wood }, -- warning messages
Comment { fg = p.bg.da(38).de(28), gui = (italic_comments and "italic" or "NONE") }, -- any comment
Comment { fg = p.bg.da(38).de(28), gui = italic_comments }, -- any comment
Conceal { fg = p.fg.li(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
Cursor { bg = p.fg, fg = p.bg.li(20) }, -- character under the cursor

View File

@@ -16,7 +16,7 @@ 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
local italic_comments = vim.g.zenflesh_italic_comments ~= false and "italic" or nil
-- stylua: ignore start
local theme = lush(function()
@@ -43,7 +43,7 @@ local theme = lush(function()
ErrorMsg { Error }, -- error messages on the command line
WarningMsg { fg = p.wood }, -- warning messages
Comment { fg = p.bg.li(38).de(24), gui = (italic_comments and "italic" or "NONE") }, -- any comment
Comment { fg = p.bg.li(38).de(24), gui = italic_comments }, -- any comment
Conceal { fg = p.fg.da(20), gui = "bold,italic" }, -- placeholder characters substituted for concealed text (see 'conceallevel')
Cursor { bg = p.fg.li(20), fg = p.bg.da(20) }, -- character under the cursor