Skip to content

help: wrong colors #676

Description

@Glog78

Neovim version (nvim -v)

0.12.4

Neovim distribution

my own config

Description

I have always strange color output on the background of tables

Image

nvim_config.zip

Healthcheck output

==============================================================================
render-markdown:                                                            ✅

render-markdown.nvim [versions] ~
- ✅ OK neovim >= 0.11
- ✅ OK tree-sitter ABI: 15
- ✅ OK plugin: 8.13.0

render-markdown.nvim [configuration] ~
- ✅ OK valid

render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/site/queries/markdown/highlights.scm
- ✅ OK highlighter: enabled

render-markdown.nvim [tree-sitter markdown_inline] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/site/queries/markdown_inline/highlights.scm

render-markdown.nvim [tree-sitter html] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14

render-markdown.nvim [tree-sitter latex] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15

render-markdown.nvim [tree-sitter yaml] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15

render-markdown.nvim [icons] ~
- ✅ OK using: nvim-web-devicons

render-markdown.nvim [latex] ~
- ✅ OK using: { "utftex" }

render-markdown.nvim [conflicts] ~
- ✅ OK headlines: not installed
- ✅ OK markview: not installed
- ✅ OK obsidian: not installed
- ✅ OK snacks: not installed

Plugin configuration

already attached above in the zip archive 

 plugin\render-markdown.lua
return {
  'MeanderingProgrammer/render-markdown.nvim',
  ft = { 'markdown', 'quarto', 'codecompanion' },
}


 user\render-markdown.lua
require('render-markdown').setup({
    file_types = { 'markdown', 'quarto', 'codecompanion' },
})


 themeing
require("gruvbox").setup({})

vim.o.background = "dark"
vim.cmd("colorscheme gruvbox")

local api = vim.api
local hl = api.nvim_set_hl

local normal = api.nvim_get_hl(0, { name = "Normal" })
local title = api.nvim_get_hl(0, { name = "Title" })

hl(0, "RenderMarkdownTableHead", {
  bg = normal.bg,
  fg = title.fg or normal.fg,
  bold = true,
})

hl(0, "RenderMarkdownTableRow", {
  bg = normal.bg,
  fg = normal.fg,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions