diff --git a/lua/gruber-darker.lua b/lua/gruber-darker.lua index cdb742c..4248533 100644 --- a/lua/gruber-darker.lua +++ b/lua/gruber-darker.lua @@ -29,8 +29,9 @@ local function create_autocmds() }) -- This is a mitigation for new Nvim v0.9.0 lsp semantic highlights - -- overriding treesitter highlights. Need to link these to relevant - -- treesitter groups in the future. See :h lsp-semantic-highlight + -- overriding treesitter highlights. + -- TODO: link these to relevant treesitter groups in the future. + -- See :h lsp-semantic-highlight vim.api.nvim_create_autocmd("ColorScheme", { group = gruber_darker_group, pattern = "*", diff --git a/lua/gruber-darker/highlights/treesitter.lua b/lua/gruber-darker/highlights/treesitter.lua index c4a72f3..e787c3b 100644 --- a/lua/gruber-darker/highlights/treesitter.lua +++ b/lua/gruber-darker/highlights/treesitter.lua @@ -24,7 +24,7 @@ end ---Line and block comments M.highlights.comment = Highlight.new("@comment", { link = vim_hl.comment }) ---Comments documenting code -M.highlights.comment_documentation = Highlight.new("@comment.documentation", { link = gruber_hl.green }) +M.highlights.comment_documentation = Highlight.new("@comment.documentation", { link = gruber_hl.green, italic = opts.italic.comments }) M.highlights.comment_luadoc = Highlight.new("@comment.luadoc", { link = M.highlights.comment_documentation }) ---Syntax/parser errors M.highlights.error = Highlight.new("@error", {}) @@ -44,7 +44,7 @@ M.highlights.punctuation_delimiter = Highlight.new("@punctuation.delimiter", { l ---Brackets (e.g. `()` / `{}` / `[]`) M.highlights.punctuation_bracket = Highlight.new("@punctuation.bracket", { link = gruber_hl.wisteria }) ---Special symbols (e.g. `{}` in string interpolation) -M.highlights.punctuation_special = Highlight.new("punctuation.special", { link = gruber_hl.brown }) +M.highlights.punctuation_special = Highlight.new("@punctuation.special", { link = gruber_hl.brown }) -- Literals