diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-19 18:53:04 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-19 18:53:04 +0200 |
| commit | e3717620257fbd984cb12a73ae77b7bedde6a5bd (patch) | |
| tree | fe4a388621603dfcc5341fa09683ee0f8870bc63 /plugin/40-colors.lua | |
| parent | d7e21de6db0072b719c62089e432f9d67d44e18e (diff) | |
| download | nvim-config-e3717620257fbd984cb12a73ae77b7bedde6a5bd.tar.gz nvim-config-e3717620257fbd984cb12a73ae77b7bedde6a5bd.zip | |
fix(nvim): correct popup rendering for bullets and LSP docs
RenderMarkdownBullet now uses fg only (no bg) so list bullets adopt the
window background instead of painting Normal's bg as a mismatched box in
popups. open_floating_preview is wrapped to widen hover/signature docs to
the 120-col line-length convention so long signatures wrap less.
Diffstat (limited to 'plugin/40-colors.lua')
| -rw-r--r-- | plugin/40-colors.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/40-colors.lua b/plugin/40-colors.lua index 21c93e7..6e3e59d 100644 --- a/plugin/40-colors.lua +++ b/plugin/40-colors.lua @@ -58,10 +58,17 @@ local function adjust_highlight() vim.api.nvim_set_hl(0, "TabLineSel", { bg = "#edffd5" }) vim.api.nvim_set_hl(0, "Cursorline", { bg = "#edffd5" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = solarized_colors.base2 }) + -- render-markdown links Bullet -> Normal (an explicit bg). The custom + -- NormalFloat bg above then differs from that, so bullets show a + -- mismatched box in popups. Give the glyph Normal's fg but NO bg so it + -- stays transparent and adopts whatever window backs it (Normal in + -- buffers, NormalFloat in popups). + vim.api.nvim_set_hl(0, "RenderMarkdownBullet", { fg = solarized_colors.base00 }) elseif vim.o.background == "dark" then vim.api.nvim_set_hl(0, "TabLineSel", { bg = "#043624" }) vim.api.nvim_set_hl(0, "Cursorline", { bg = "#043624" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = solarized_colors.base02 }) + vim.api.nvim_set_hl(0, "RenderMarkdownBullet", { fg = solarized_colors.base0 }) end end end |
