shaunsingh / nord.nvim

Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
GNU General Public License v2.0
796 stars 107 forks source link

Support for italic comments via global setting #40

Open peteryates opened 3 years ago

peteryates commented 3 years ago

I love this colour scheme and have been using it for a few weeks, thanks. There's only one little thing missing from the original Nord theme that I think is very useful, the g:nord_italic_comments setting.

It was implemented here.

jcypret commented 5 months ago

^ agree

For anyone else looking for a workaround, this seems to do the trick:

vim.cmd([[colorscheme nord]])

-- italicize comments
local hl = vim.api.nvim_get_hl_by_name("@comment", true)
vim.api.nvim_set_hl(0, "@comment", { fg = hl.foreground, italic = true })