tiagovla / tokyodark.nvim

A clean dark theme written in lua for neovim.
453 stars 19 forks source link

The todo comments don't work. #7

Closed ashincoder closed 2 years ago

ashincoder commented 2 years ago

This is tokyodark: 2021-10-12-133649_258x154_scrot

This is onedarker: 2021-10-12-134934_195x173_scrot

The todo comments some don't work. Love this colorscheme.

tiagovla commented 2 years ago

I wasn't able to find onedarker. Is it onedark.nvim? Could you link it?

ashincoder commented 2 years ago

sorry for not linking it. :pleading_face: https://github.com/LunarVim/onedarker.nvim

tiagovla commented 2 years ago

@ashincoder oh, it's fine. I was just curious about it. Could you update and check if it works?

image

ashincoder commented 2 years ago

2021-10-13-075245_168x410_scrot @tiagovla Now it works :smile:. Could u make it bold ? So it stands out. Great. Thank you :smile: :+1:

tiagovla commented 2 years ago

Tbh I did try that, but I think it's way too much. Specially using medium size instead of regular.

cmp

If you want to customize it in your config, you can use this after loading the theme:

local function replace_hl(group, val)
    local ns = vim.api.nvim_create_namespace('tokyodark')
    local res = vim.api.nvim_get_hl_by_name(group, true)
    res = vim.tbl_extend("force", res, val)
    vim.api.nvim_set_hl(ns, group, res)
end

local groups = {"commentTSDanger", "commentTSNote", "commentTSWarning"}
for _, group in ipairs(groups) do replace_hl(group, {bold = true}) end

Btw, these are the groups used by treesitter, Todo is linked if those are not defined. https://github.com/tiagovla/tokyodark.nvim/blob/c1052e548db1b6107155d0b7f3aa577a12d2464a/lua/tokyodark/highlights.lua#L187-L189