check the following vim style sheet and see if you found any text with brownish (dark yellow) colors:
hi Cursor cterm=NONE guifg=#0099cc guibg=#e5e7e9
hi Visual ctermfg=NONE ctermbg=16 cterm=NONE guifg=NONE guibg=#19242f gui=NONE
hi CursorLine ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#405160 gui=NONE
hi CursorColumn ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#405160 gui=NONE
hi ColorColumn ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=#334352 gui=NONE
hi LineNr ctermfg=223 ctermbg=NONE cterm=NONE guifg=#929ba1 guibg=#2b3e50 gui=NONE
hi VertSplit ctermfg=60 ctermbg=60 cterm=NONE guifg=#46545f guibg=#46545f gui=NONE
hi MatchParen ctermfg=203 ctermbg=30 cterm=underline guifg=#ff6541 guibg=#AAB7B8 gui=underline
hi StatusLine ctermfg=231 ctermbg=60 cterm=bold guifg=#b8f8b2 guibg=#46545f gui=bold
hi StatusLineNC ctermfg=231 ctermbg=60 cterm=NONE guifg=#a8b8b2 guibg=#46545f gui=NONE
hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=#19242f gui=NONE
hi PmenuSel ctermfg=NONE ctermbg=16 cterm=NONE guifg=NONE guibg=#66747f gui=NONE
hi IncSearch ctermfg=23 ctermbg=158 cterm=NONE guifg=#2b3e50 guibg=#caf9f4 gui=NONE
hi Search ctermfg=white ctermbg=darkblue cterm=underline guifg=#90fff0 guibg=#2050d0 gui=underline
hi Directory ctermfg=177 ctermbg=NONE cterm=NONE guifg=#ca94ff guibg=NONE gui=NONE
hi Folded ctermfg=68 ctermbg=23 cterm=NONE guifg=#5c98cd guibg=#2b3e50 gui=NONE
hi Terminal ctermfg=lightgrey ctermbg=black cterm=NONE guifg=lightgrey guibg=black gui=NONE
" Colors for tabs in cterm
hi TabLineFill ctermfg=60
hi TabLine ctermfg=254 ctermbg=60 cterm=NONE
hi TabLineSel ctermfg=254 ctermbg=61 cterm=NONE
hi Normal ctermfg=248 ctermbg=NONE cterm=NONE guifg=#c9c9cf guibg=#2b3e50 gui=NONE
hi Boolean ctermfg=177 ctermbg=NONE cterm=NONE guifg=#ca94ff guibg=NONE gui=NONE
hi Character ctermfg=177 ctermbg=NONE cterm=NONE guifg=#ca94ff guibg=NONE gui=NONE
" Comment color was #5c98cd changed to #5d85a8 and back!
hi Comment ctermfg=44 ctermbg=NONE cterm=italic guifg=#5d85a8 guibg=#2b3e50 gui=italic
hi Conditional ctermfg=203 ctermbg=NONE cterm=NONE guifg=#ff6541 guibg=NONE gui=NONE
hi Constant ctermfg=magenta ctermbg=NONE cterm=NONE guifg=#ffa0a0 guibg=NONE gui=NONE
hi Define ctermfg=203 ctermbg=NONE cterm=NONE guifg=#ff6541 guibg=NONE gui=NONE
hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#478815 gui=bold
hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8c0c10 guibg=NONE gui=NONE
hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#26446c gui=NONE
hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold
hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
hi Float ctermfg=177 ctermbg=NONE cterm=NONE guifg=#ca94ff guibg=NONE gui=NONE
hi Function ctermfg=cyan ctermbg=NONE cterm=NONE guifg=#77f4ea guibg=NONE gui=NONE
hi Identifier ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi Keyword ctermfg=203 ctermbg=NONE cterm=NONE guifg=#ff6541 guibg=NONE gui=NONE
hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi NonText ctermfg=74 ctermbg=NONE cterm=NONE guifg=#61bbc8 guibg=#354758 gui=NONE
hi Number ctermfg=177 ctermbg=NONE cterm=NONE guifg=#ca94ff guibg=NONE gui=NONE
hi Operator ctermfg=203 ctermbg=NONE cterm=NONE guifg=#ff6541 guibg=NONE gui=NONE
hi PreProc ctermfg=magenta ctermbg=NONE cterm=NONE guifg=#ff80ff guibg=NONE gui=NONE
hi Parameter ctermfg=214 ctermbg=NONE cterm=NONE guifg=#ffab28 guibg=NONE gui=italic
hi Special ctermfg=brown ctermbg=NONE cterm=NONE guifg=#e0820f guibg=NONE gui=NONE
hi SpecialKey ctermfg=74 ctermbg=59 cterm=NONE guifg=#61bbc8 guibg=#405160 gui=NONE
hi Statement ctermfg=203 ctermbg=NONE cterm=NONE guifg=#ff6541 guibg=NONE gui=NONE
hi StorageClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
hi String ctermfg=124 ctermbg=NONE cterm=NONE guifg=#ffa0a0 guibg=NONE gui=NONE
hi Tag ctermfg=203 ctermbg=NONE cterm=NONE guifg=#ff6541 guibg=NONE gui=NONE
hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold
hi Todo ctermfg=68 ctermbg=NONE cterm=inverse,bold guifg=#5c98cd guibg=NONE gui=inverse,bold
hi Type ctermfg=green ctermbg=NONE cterm=NONE guifg=#60ff60 guibg=NONE gui=NONE
hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
hi Warning ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=#ff0000 gui=underline
Assistant
Yes, after reviewing your Vim color scheme, I can confirm that you do have at least one group using a brownish (or dark yellow) color.
Specifically:
hi Special ctermfg=brown ctermbg=NONE cterm=NONE guifg=#e0820f guibg=NONE gui=NONE
The ctermfg=brown uses the standard 16-color terminal color named "brown", which often appears as a dark yellow in many terminal emulators.
The guifg=#e0820f is a hex color code representing a brownish orange, reinforcing the brown/dark-yellow look in GUI environments.
Details:
Group
Color Type
Value
Description
Special
ctermfg
brown
TUI: classic dark yellow / orange-brown
Special
guifg
#e0820f
GUI: brown-orange (RGB: 224, 130, 15)
Summary:
✅ Yes, there is brownish/dark-yellow color usage:
In the Special group.
Both the terminal (cterm) and GUI (gui) definitions reflect this color.
If you'd like to adjust the shade or replace it, let me know what you want it changed to!
User
anything with whitish background?
Assistant
After closely reviewing your Vim colorscheme, there are no highlight groups defined with a clearly white or whitish background.
✅ What I Checked:
In Vim highlight groups, a "whitish background" would typically be any of these:
guibg (for GUI) set to a very light color (e.g. #ffffff, #f8f8f8, #eeeeee, etc.)
ctermbg set to light colors (e.g. white, lightgrey, or equivalent numeric codes like 231, 15, etc.)
🎯 Findings:
From your color scheme:
Most guibg values are dark colors like #2b3e50, #19242f, #46545f, etc.
The only light-looking guibgs are:
1. IncSearch
hi IncSearch ctermfg=23 ctermbg=158 guifg=#2b3e50 guibg=#caf9f4
guibg=#caf9f4 is a very light cyan
✅ Might appear somewhat "whitish" depending on screen/contrast
2. MatchParen
hi MatchParen guibg=#AAB7B8
That’s a muted light gray-blue, not white, but not very dark either.
3. StatusLine
hi StatusLine guifg=#b8f8b2 guibg=#46545f
guibg here is dark; guifg is light (but no white background)
🤚 What is not whitish:
You use many light foreground colors (guifg=#f8f8f2, #f8f8f0, etc.), but they are paired with dark backgrounds (like #2b3e50, #26446c, or NONE which defaults to your editor background).
✅ In Summary:
No backgrounds are white or close to pure white
Closest to "whitish" background is guibg=#caf9f4 (very light cyan) in IncSearch
Everything else is dark-theme-friendly
Would you like help finding or creating a light theme instead? Or tweaking anything to avoid bright backgrounds completely?
User
is there a way for me to detect the style class of a text in the VIM after it has shown by a plugin or LSP?
Assistant
Yes, there are several ways in Vim (and especially Neovim) to inspect the highlight group (style class) of a piece of text after it has been rendered, including text coming from a plugin or LSP.
✅ Use Cases
Whether you're using:
Text highlighted by syntax rules
Decorations added by plugins
Diagnostics or virtual text from LSPs
You can probe the highlight group under the cursor, which is often referred to as the "style class" you're asking about.
🛠️ How to Detect Highlight Groups in Vim or Neovim
🔎 1. Use :echo synIDattr() or synID(...)
Move your cursor to the text you want to inspect, then run:
👨💻 2. Use :Inspect or K in Treesitter-aware plugins
If you're using Neovim with Treesitter or LSP:
:Inspect (from nvim-treesitter plugin)
:TSHighlightCapturesUnderCursor — shows all highlight captures under the cursor.
🌲 For example:
:TSHighlightCapturesUnderCursor
Gives you structural captures and their highlight groups.
🧪 3. Use LSP-related highlight querying
For LSP-generated highlights (e.g. diagnostics, virtual text):
Move your cursor to the affected text and type:
:echo synstack(line("."), col("."))
User
vim using a LSP display a warning sign at the left most column of some lines with problems. what is that? and the tagged lines will be highlighted with strange color I can't pinpoint in the vim color style. how can I detect name of class? it wont show with "echo synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')".
Assistant
Great question — you're encountering a classic Vim/Neovim interaction with LSP diagnostic signs and virtual highlights, which are:
Not always part of the regular syntax stack
Not inspectable using synID() and friends — those work for buffer text, not UI decorations like signs or virtual text.
Let’s break this down and help you exactly find the "class" (highlight group) being used by the LSP—both for the 💡 sign in the gutter, and the 🎨 weird line highlight you're seeing.
🍁 Part 1: What is that "warning sign" in the leftmost column?
That's a sign placed by Vim/Neovim's LSP diagnostics.
🔹 Signs
Displayed in sign column (:help sign)
Common icons: ⚠️, 💡, ❗, 🛑, etc.
Placed by your LSP client (e.g., nvim-lspconfig, coc.nvim) to indicate errors/warnings/hints.
These signs are linked to sign highlight groups like:
Plugins often use extmarks, virtual text, and can override highlights — this approach still detects them (if they're assigned highlight groups).
Might not catch inline decorations done via custom UI extmarks (in some complex scenarios).
✅ Summary
Method
Works With
Usage
synID()
Buffer text & syntax
:echo synIDattr(synID(...), 'name')
synstack()
Deep layers
Get all applicable group names
:TSHighlightCapturesUnderCursor
Treesitter
Captures and highlight groups
Plugins like hi.vim
All sources
:HiLinkUnderCursor
LSP virtual text
auto-detects
Via synID() or plugins
Would you like a custom command that prints the highlight group along with color info? Or auto-picks the appropriate method based on syntax/LSP status?
virtual text
These use other highlight groups like:
Highlight Purpose
Group Name
Line highlights
DiagnosticUnderlineError, etc.
Inline virtual text
DiagnosticVirtualTextWarn, etc.
Entire line background
DiagnosticLineError(used by some setups)
🧐 Problem: synID(...) doesn’t detect this stuff!
Correct. These LSP/UI highlights bypass the syntax system and are instead part of:
Extmarks with associated highlight groups
UI overlays like signs or virtual text
🔍 So how do you detect highlight used by LSP/diagnostic overlay?
Here are your real tools:
✅ Option 1: :Inspect command in Neovim (nvim-treesitter)
If you have nvim-treesitter plugin installed:
:TSHighlightCapturesUnderCursor
Or with LSP extmarks:
:Inspect
At your cursor’s location, this will tell you exactly what highlight group is being applied — including virtual text or diagnostics.
✅ Option 2: nvim_get_extmarks() to inspect the real decorations
You can programmatically inspect applied extmarks that carry highlight metadata:
💡 BONUS TIP: Use a mapping to echo the LSP extmark highlight under cursor
You can add this Lua snippet to check the extmark with highlight:
vim.keymap.set("n", "<leader>hi", function()
local ns_ids = vim.api.nvim_get_namespaces()
for name, id in pairs(ns_ids) do
local extmarks = vim.api.nvim_buf_get_extmarks(0, id, 0, -1, { details = true })
for _, mark in ipairs(extmarks) do
local lnum = vim.api.nvim_win_get_cursor(0)[1] - 1
if mark[2] == lnum then
print(string.format("Namespace: %s, Highlight: %s", name, mark[4].hl_group or "NONE"))
end
end
end
end)
Now press <leader>hi over the strange highlight and print the associated highlight group!