nvim: Add option switch to italicize/normalize comments
This commit is contained in:
parent
43ae4ea7d4
commit
3f4c057ffe
1 changed files with 16 additions and 0 deletions
|
|
@ -289,6 +289,22 @@ return {
|
|||
end,
|
||||
desc = "floating file browser",
|
||||
},
|
||||
{
|
||||
"[oi",
|
||||
function()
|
||||
local c = vim.api.nvim_get_hl(0, { name = "Comment" })
|
||||
vim.api.nvim_set_hl(0, "Comment", vim.tbl_extend("force", c, { italic = false }))
|
||||
end,
|
||||
desc = "no italic comments",
|
||||
},
|
||||
{
|
||||
"]oi",
|
||||
function()
|
||||
local c = vim.api.nvim_get_hl(0, { name = "Comment" })
|
||||
vim.api.nvim_set_hl(0, "Comment", vim.tbl_extend("force", {}, c, { italic = true }))
|
||||
end,
|
||||
desc = "italic comments",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- try to avoid putting files in util buffers, e.g. filetree, aerial, undotree, ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue