commit 54189f256a0a6ccddd4cc921327c53b7694a7095 from: amb date: Fri Oct 2 12:24:01 2026 UTC try green for strings and grey for coments for a while commit - 69e02a0e929b003411c8bdc86c073d2aef2cc096 commit + 54189f256a0a6ccddd4cc921327c53b7694a7095 blob - 55d64c1a1764bcdb56072d3a00db03f19911a24e blob + 3593b0a246c62c90cc94108c162f8124db4d2b8c --- lua/colors.lua +++ lua/colors.lua @@ -1,9 +1,30 @@ vim.opt.termguicolors = false -vim.cmd('syntax off') +vim.cmd('syntax enable') --- match pairs still have style -vim.api.nvim_set_hl(0, "MatchParen", {}) +-- make comments italic +vim.api.nvim_set_hl(0, "Comment", { + ctermfg = 8, + cterm = { italic = true }, +}) +vim.api.nvim_set_hl(0, "String", { + ctermfg = 22, +}) + +local groups = { + "Constant", "MatchParen", "Identifier", "Statement", "PreProc", "Type", "Special", + "Character", "Number", "Boolean", "Float", "Function", + "Conditional", "Repeat", "Label", "Operator", "Keyword", "Exception", + "Include", "Define", "Macro", "PreCondit", "StorageClass", "Structure", + "Typedef", "Delimiter", "Underlined", "Error", "Todo", "netrwDir", "@variable", + "GitSignsAdd", "GitSignsChange", "GitSignsDelete", "GitSignsStagedAdd", + "GitSignsStagedChange", "GitSignsStagedDelete" +} + +for _, group in ipairs(groups) do + vim.api.nvim_set_hl(0, group, { link = "Normal" }) +end + -- disable some mistical built-in treesitter that ignores syntax off vim.api.nvim_create_autocmd("FileType", { pattern = "*",