sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.83k stars 164 forks source link

Weird highlighting for markdown checkboxes when Treesitter is enabled #173

Closed noomly closed 1 year ago

noomly commented 1 year ago

I have done the following steps before reporting this issue:

Operating system/version

Archlinux

Terminal emulator/version

Kitty

$TERM environment variable

xterm-kitty

Tmux version

No response

Feature matrix

NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3
:checkhealth ============================================================================== gitsigns: require("gitsigns.health").check() - OK git version 2.40.0 ============================================================================== mason: require("mason.health").check() mason.nvim ~ - OK neovim version >= 0.7.0 mason.nvim [Registries] ~ - OK Registry `require("mason-registry.index")` is installed. - OK Registry `github.com/mason-org/mason-registry version: 2023-04-18-gray-panda` is installed. mason.nvim [Core utils] ~ - OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send` - OK wget: `GNU Wget 1.21.3 built on linux-gnu.` - OK curl: `curl 8.0.1 (x86_64-pc-linux-gnu) libcurl/8.0.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.52.0` - OK gzip: `gzip 1.12` - OK tar: `tar (GNU tar) 1.34` - OK bash: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)` - OK sh: `Ok` mason.nvim [Languages] ~ - WARNING luarocks: not available - ADVICE: - spawn: luarocks failed with exit code - and signal -. luarocks is not executable - WARNING Composer: not available - ADVICE: - spawn: composer failed with exit code - and signal -. composer is not executable - WARNING PHP: not available - ADVICE: - spawn: php failed with exit code - and signal -. php is not executable - OK Go: `go version go1.20.2 linux/amd64` - OK Ruby: `ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-linux]` - WARNING javac: not available - ADVICE: - spawn: javac failed with exit code - and signal -. javac is not executable - OK node: `v19.8.1` - WARNING julia: not available - ADVICE: - spawn: julia failed with exit code - and signal -. julia is not executable - OK python3: `Python 3.10.10` - OK cargo: `cargo 1.68.2 (6feb7c9cf 2023-03-26)` - OK java: `openjdk version "1.8.0_362"` - OK RubyGem: `3.3.25` - OK pip3: `pip 23.0.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)` - OK npm: `8.19.2` mason.nvim [GitHub] ~ - OK GitHub API rate limit. Used: 4. Remaining: 4996. Limit: 5000. Reset: Thu 20 Apr 2023 02:48:20 PM CEST. ============================================================================== nvim: require("nvim.health").check() Configuration ~ - OK no issues found Runtime ~ - OK $VIMRUNTIME: /usr/share/nvim/runtime Performance ~ - OK Build type: Release Remote Plugins ~ - OK Up to date terminal ~ - key_backspace (kbs) terminfo entry: `key_backspace=\177` - key_dc (kdch1) terminfo entry: `key_dc=\E[3~` - $COLORTERM="truecolor" ============================================================================== nvim-treesitter: require("nvim-treesitter.health").check() Installation ~ - OK `tree-sitter` found 0.20.8 (parser generator, only needed for :TSInstallFromGrammar) - OK `node` found v19.8.1 (only needed for :TSInstallFromGrammar) - OK `git` executable found. - OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (GCC) 12.2.1 20230201 - OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. OS Info: { machine = "x86_64", release = "6.2.9-arch1-1", sysname = "Linux", version = "#1 SMP PREEMPT_DYNAMIC Thu, 30 Mar 2023 14:51:14 +0000" } ~ Parser/Features H L F I J - ada ✓ ✓ ✓ . . - agda ✓ . ✓ . . - arduino ✓ ✓ ✓ ✓ ✓ - astro ✓ ✓ ✓ ✓ ✓ - awk ✓ . . . ✓ - bash ✓ ✓ ✓ . ✓ - bass ✓ ✓ ✓ ✓ ✓ - beancount ✓ . ✓ . . - bibtex ✓ . ✓ ✓ . - bicep ✓ ✓ ✓ ✓ ✓ - blueprint ✓ . . . . - c ✓ ✓ ✓ ✓ ✓ - c_sharp ✓ ✓ ✓ . ✓ - capnp ✓ ✓ ✓ ✓ ✓ - chatito ✓ ✓ ✓ ✓ ✓ - clojure ✓ ✓ ✓ . ✓ - cmake ✓ . ✓ . . - comment ✓ . . . . - commonlisp ✓ ✓ ✓ . . - cooklang ✓ . . . . - cpon ✓ ✓ ✓ ✓ ✓ - cpp ✓ ✓ ✓ ✓ ✓ - css ✓ . ✓ ✓ ✓ - cuda ✓ ✓ ✓ ✓ ✓ - cue ✓ ✓ ✓ ✓ ✓ - d ✓ . ✓ ✓ ✓ - dart ✓ ✓ ✓ ✓ ✓ - devicetree ✓ ✓ ✓ ✓ ✓ - dhall ✓ . ✓ . ✓ - diff ✓ . . . . - dockerfile ✓ . . . ✓ - dot ✓ . . . ✓ - ebnf ✓ . . . . - eex ✓ . . . ✓ - elixir ✓ ✓ ✓ ✓ ✓ - elm ✓ . . . ✓ - elsa ✓ ✓ ✓ ✓ ✓ - elvish ✓ . . . ✓ - embedded_template ✓ . . . ✓ - erlang ✓ . ✓ . . - fennel ✓ ✓ ✓ . ✓ - firrtl ✓ ✓ ✓ ✓ ✓ - fish ✓ ✓ ✓ ✓ ✓ - foam ✓ ✓ ✓ ✓ ✓ - fortran ✓ . ✓ ✓ . - fsh ✓ . . . . - func ✓ . . . . - fusion ✓ ✓ ✓ ✓ . - gdscript ✓ ✓ ✓ ✓ ✓ - git_config ✓ . . . . - git_rebase ✓ . . . ✓ - gitattributes ✓ . . . ✓ - gitcommit ✓ . . . ✓ - gitignore ✓ . . . . - gleam ✓ ✓ ✓ ✓ ✓ - glimmer ✓ . . . . - glsl ✓ ✓ ✓ ✓ ✓ - go ✓ ✓ ✓ ✓ ✓ - godot_resource ✓ ✓ ✓ . . - gomod ✓ . . . ✓ - gosum ✓ . . . . - gowork ✓ . . . ✓ - graphql ✓ . . ✓ ✓ - hack ✓ . . . . - hare ✓ ✓ ✓ ✓ ✓ - haskell ✓ . ✓ . ✓ - hcl ✓ . ✓ ✓ ✓ - heex ✓ ✓ ✓ ✓ ✓ - hjson ✓ ✓ ✓ ✓ ✓ - hlsl ✓ ✓ ✓ ✓ ✓ - hocon ✓ . . . ✓ - html ✓ ✓ ✓ ✓ ✓ - htmldjango ✓ . ✓ ✓ ✓ - http ✓ . . . ✓ - ini ✓ . ✓ . . - java ✓ ✓ . ✓ ✓ - javascript ✓ ✓ ✓ ✓ ✓ - jq ✓ . . . ✓ - jsdoc ✓ . . . . - json ✓ ✓ ✓ ✓ . - json5 ✓ . . . ✓ - jsonc ✓ ✓ ✓ ✓ ✓ - jsonnet ✓ . . . . - julia ✓ ✓ ✓ ✓ ✓ - kdl ✓ ✓ ✓ ✓ ✓ - kotlin ✓ ✓ ✓ . ✓ - lalrpop ✓ ✓ . . ✓ - latex ✓ . ✓ . ✓ - ledger ✓ . ✓ ✓ ✓ - llvm ✓ . . . . - lua ✓ ✓ ✓ ✓ ✓ - luadoc ✓ . . . . - luap ✓ . . . . - m68k ✓ ✓ ✓ . ✓ - make ✓ . ✓ . ✓ - markdown ✓ . ✓ . ✓ - markdown_inline ✓ . . . ✓ - matlab ✓ . ✓ . ✓ - menhir ✓ . . . ✓ - mermaid ✓ . . . . - meson ✓ . ✓ . ✓ - mlir ✓ ✓ . . . - nickel ✓ . . . . - ninja ✓ . ✓ ✓ . - nix ✓ ✓ ✓ . ✓ - norg . . . . . - ocaml ✓ ✓ ✓ . ✓ - ocaml_interface ✓ ✓ ✓ . ✓ - ocamllex ✓ . . . ✓ - org . . . . . - pascal ✓ ✓ ✓ ✓ ✓ - passwd ✓ . . . . - perl ✓ . ✓ . ✓ - php ✓ ✓ ✓ ✓ ✓ - pioasm ✓ . . . ✓ - po ✓ . ✓ . ✓ - poe_filter ✓ . ✓ ✓ ✓ - pony ✓ ✓ ✓ ✓ ✓ - prisma ✓ . . . . - proto ✓ . ✓ . . - prql ✓ . . . ✓ - pug ✓ . . . ✓ - python ✓ ✓ ✓ ✓ ✓ - ql ✓ ✓ ✓ ✓ ✓ - qmldir ✓ . . . ✓ - qmljs ✓ . ✓ . . - query ✓ ✓ ✓ ✓ ✓ - r ✓ ✓ . ✓ ✓ - racket ✓ . ✓ . ✓ - rasi ✓ ✓ ✓ ✓ . - regex ✓ . . . . - rego ✓ . . . ✓ - rnoweb ✓ . ✓ . ✓ - ron ✓ ✓ ✓ ✓ ✓ - rst ✓ ✓ . . ✓ - ruby ✓ ✓ ✓ ✓ ✓ - rust ✓ ✓ ✓ ✓ ✓ - scala ✓ ✓ ✓ . ✓ - scheme ✓ . ✓ . ✓ - scss ✓ . ✓ ✓ . - slint ✓ . . ✓ . - smali ✓ ✓ ✓ ✓ ✓ - smithy ✓ . . . . - solidity ✓ . . . . - sparql ✓ ✓ ✓ ✓ ✓ - sql ✓ . . . ✓ - squirrel ✓ ✓ ✓ ✓ ✓ - starlark ✓ ✓ ✓ ✓ ✓ - supercollider ✓ ✓ ✓ ✓ ✓ - surface ✓ . ✓ ✓ ✓ - svelte ✓ . ✓ ✓ ✓ - swift ✓ ✓ . . . - sxhkdrc ✓ . ✓ . ✓ - t32 ✓ ✓ ✓ . ✓ - tablegen ✓ ✓ ✓ ✓ ✓ - teal ✓ ✓ ✓ ✓ ✓ - terraform ✓ . ✓ ✓ ✓ - thrift ✓ ✓ ✓ ✓ ✓ - tiger ✓ ✓ ✓ ✓ ✓ - tlaplus ✓ ✓ ✓ . ✓ - todotxt ✓ . . . . - toml ✓ ✓ ✓ ✓ ✓ - tsx ✓ ✓ ✓ ✓ ✓ - turtle ✓ ✓ ✓ ✓ ✓ - twig ✓ . . . ✓ - typescript ✓ ✓ ✓ ✓ ✓ - ungrammar ✓ ✓ ✓ ✓ ✓ - uxntal ✓ ✓ ✓ ✓ ✓ - v ✓ ✓ ✓ ✓ ✓ - vala ✓ . ✓ . . - verilog ✓ ✓ ✓ . ✓ - vhs ✓ . . . . - vim ✓ ✓ ✓ . ✓ - vimdoc ✓ . . . ✓ - vue ✓ . ✓ ✓ ✓ - wgsl ✓ . ✓ ✓ . - wgsl_bevy ✓ . ✓ ✓ . - yaml ✓ ✓ ✓ ✓ ✓ - yang ✓ . ✓ ✓ ✓ - yuck ✓ ✓ ✓ ✓ ✓ - zig ✓ . ✓ ✓ ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~ ============================================================================== provider: health#provider#check Clipboard (optional) ~ - OK Clipboard tool found: wl-copy Python 3 provider (optional) ~ - `g:python3_host_prog` is not set. Searching for python3 in the environment. - Multiple python3 executables found. Set `g:python3_host_prog` to avoid surprises. - Executable: /usr/sbin/python3 - Other python executable: /usr/bin/python3 - Other python executable: /sbin/python3 - Other python executable: /bin/python3 - Python version: 3.10.10 - pynvim version: 0.4.3 - OK Latest pynvim is installed. Python virtualenv ~ - OK no $VIRTUAL_ENV Ruby provider (optional) ~ - Ruby: ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-linux] - WARNING `neovim-ruby-host` not found. - ADVICE: - Run `gem install neovim` to ensure the neovim RubyGem is installed. - Run `gem environment` to ensure the gem bin directory is in $PATH. - If you are using rvm/rbenv/chruby, try "rehashing". - See :help |g:ruby_host_prog| for non-standard gem installations. - You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim Node.js provider (optional) ~ - Node.js: v19.8.1 - WARNING Missing "neovim" npm (or yarn, pnpm) package. - ADVICE: - Run in shell: npm install -g neovim - Run in shell (if you use yarn): yarn global add neovim - Run in shell (if you use pnpm): pnpm install -g neovim - You may disable this provider (and warning) by adding `let g:loaded_node_provider = 0` to your init.vim Perl provider (optional) ~ - WARNING "Neovim::Ext" cpan module is not installed - ADVICE: - See :help |provider-perl| for more information. - You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim ============================================================================== vim.lsp: require("vim.lsp.health").check() - LSP log level : WARN - Log path: /home/noom/.local/state/nvim/lsp.log - Log size: 18937 KB vim.lsp: Active Clients ~ - No active clients ============================================================================== vim.treesitter: require("vim.treesitter.health").check() - Nvim runtime ABI version: 14 - OK Parser: ada ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ada.so - OK Parser: agda ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/agda.so - OK Parser: arduino ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/arduino.so - OK Parser: astro ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/astro.so - OK Parser: awk ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/awk.so - OK Parser: bash ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/bash.so - OK Parser: bass ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/bass.so - OK Parser: beancount ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/beancount.so - OK Parser: bibtex ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/bibtex.so - OK Parser: bicep ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/bicep.so - OK Parser: blueprint ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/blueprint.so - OK Parser: c ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/c.so - OK Parser: c_sharp ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/c_sharp.so - OK Parser: capnp ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/capnp.so - OK Parser: chatito ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/chatito.so - OK Parser: clojure ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/clojure.so - OK Parser: cmake ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/cmake.so - OK Parser: comment ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/comment.so - OK Parser: commonlisp ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/commonlisp.so - OK Parser: cooklang ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/cooklang.so - OK Parser: cpon ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/cpon.so - OK Parser: cpp ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/cpp.so - OK Parser: css ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/css.so - OK Parser: cuda ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/cuda.so - OK Parser: cue ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/cue.so - OK Parser: d ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/d.so - OK Parser: dart ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/dart.so - OK Parser: devicetree ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/devicetree.so - OK Parser: dhall ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/dhall.so - OK Parser: diff ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/diff.so - OK Parser: dockerfile ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/dockerfile.so - OK Parser: dot ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/dot.so - OK Parser: ebnf ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ebnf.so - OK Parser: eex ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/eex.so - OK Parser: elixir ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/elixir.so - OK Parser: elm ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/elm.so - OK Parser: elsa ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/elsa.so - OK Parser: elvish ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/elvish.so - OK Parser: embedded_template ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/embedded_template.so - OK Parser: erlang ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/erlang.so - OK Parser: fennel ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/fennel.so - OK Parser: firrtl ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/firrtl.so - OK Parser: fish ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/fish.so - OK Parser: foam ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/foam.so - OK Parser: fortran ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/fortran.so - OK Parser: fsh ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/fsh.so - OK Parser: func ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/func.so - OK Parser: fusion ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/fusion.so - OK Parser: gdscript ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gdscript.so - OK Parser: git_config ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/git_config.so - OK Parser: git_rebase ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/git_rebase.so - OK Parser: gitattributes ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gitattributes.so - OK Parser: gitcommit ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gitcommit.so - OK Parser: gitignore ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gitignore.so - OK Parser: gleam ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gleam.so - OK Parser: glimmer ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/glimmer.so - OK Parser: glsl ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/glsl.so - OK Parser: go ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/go.so - OK Parser: godot_resource ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/godot_resource.so - OK Parser: gomod ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gomod.so - OK Parser: gosum ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gosum.so - OK Parser: gowork ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/gowork.so - OK Parser: graphql ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/graphql.so - OK Parser: hack ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/hack.so - OK Parser: hare ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/hare.so - OK Parser: haskell ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/haskell.so - OK Parser: hcl ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/hcl.so - OK Parser: heex ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/heex.so - ERROR Parser "help" failed to load (path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/help.so): Failed to load parser: uv_dlsym: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/help.so: undefined symbol: tree_sitter_help - OK Parser: hjson ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/hjson.so - OK Parser: hlsl ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/hlsl.so - OK Parser: hocon ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/hocon.so - OK Parser: html ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/html.so - OK Parser: htmldjango ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/htmldjango.so - OK Parser: http ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/http.so - OK Parser: ini ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ini.so - OK Parser: java ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/java.so - OK Parser: javascript ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/javascript.so - OK Parser: jq ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/jq.so - OK Parser: jsdoc ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/jsdoc.so - OK Parser: json ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/json.so - OK Parser: json5 ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/json5.so - OK Parser: jsonc ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/jsonc.so - OK Parser: jsonnet ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/jsonnet.so - OK Parser: julia ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/julia.so - OK Parser: kdl ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/kdl.so - OK Parser: kotlin ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/kotlin.so - OK Parser: lalrpop ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/lalrpop.so - OK Parser: latex ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/latex.so - OK Parser: ledger ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ledger.so - OK Parser: llvm ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/llvm.so - OK Parser: lua ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/lua.so - OK Parser: luadoc ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/luadoc.so - OK Parser: luap ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/luap.so - OK Parser: m68k ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/m68k.so - OK Parser: make ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/make.so - OK Parser: markdown ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/markdown.so - OK Parser: markdown_inline ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/markdown_inline.so - OK Parser: matlab ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/matlab.so - OK Parser: menhir ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/menhir.so - OK Parser: mermaid ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/mermaid.so - OK Parser: meson ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/meson.so - OK Parser: mlir ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/mlir.so - OK Parser: nickel ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/nickel.so - OK Parser: ninja ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ninja.so - OK Parser: nix ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/nix.so - OK Parser: norg ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/norg.so - OK Parser: ocaml ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ocaml.so - OK Parser: ocaml_interface ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ocaml_interface.so - OK Parser: ocamllex ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ocamllex.so - OK Parser: org ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/org.so - OK Parser: pascal ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/pascal.so - OK Parser: passwd ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/passwd.so - OK Parser: perl ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/perl.so - OK Parser: php ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/php.so - OK Parser: pioasm ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/pioasm.so - OK Parser: po ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/po.so - OK Parser: poe_filter ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/poe_filter.so - OK Parser: pony ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/pony.so - OK Parser: prisma ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/prisma.so - OK Parser: proto ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/proto.so - OK Parser: prql ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/prql.so - OK Parser: pug ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/pug.so - OK Parser: python ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/python.so - OK Parser: ql ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ql.so - OK Parser: qmldir ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/qmldir.so - OK Parser: qmljs ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/qmljs.so - OK Parser: query ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/query.so - OK Parser: r ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/r.so - OK Parser: racket ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/racket.so - OK Parser: rasi ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/rasi.so - OK Parser: regex ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/regex.so - OK Parser: rego ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/rego.so - OK Parser: rnoweb ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/rnoweb.so - OK Parser: ron ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ron.so - OK Parser: rst ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/rst.so - OK Parser: ruby ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ruby.so - OK Parser: rust ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/rust.so - OK Parser: scala ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/scala.so - OK Parser: scheme ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/scheme.so - OK Parser: scss ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/scss.so - OK Parser: slint ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/slint.so - OK Parser: smali ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/smali.so - OK Parser: smithy ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/smithy.so - OK Parser: solidity ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/solidity.so - OK Parser: sparql ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/sparql.so - OK Parser: sql ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/sql.so - OK Parser: squirrel ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/squirrel.so - OK Parser: starlark ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/starlark.so - OK Parser: supercollider ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/supercollider.so - OK Parser: surface ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/surface.so - OK Parser: svelte ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/svelte.so - OK Parser: swift ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/swift.so - OK Parser: sxhkdrc ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/sxhkdrc.so - OK Parser: t32 ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/t32.so - OK Parser: tablegen ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/tablegen.so - OK Parser: teal ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/teal.so - OK Parser: terraform ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/terraform.so - OK Parser: thrift ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/thrift.so - OK Parser: tiger ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/tiger.so - OK Parser: tlaplus ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/tlaplus.so - OK Parser: todotxt ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/todotxt.so - OK Parser: toml ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/toml.so - OK Parser: tsx ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/tsx.so - OK Parser: turtle ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/turtle.so - OK Parser: twig ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/twig.so - OK Parser: typescript ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/typescript.so - OK Parser: ungrammar ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/ungrammar.so - OK Parser: uxntal ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/uxntal.so - OK Parser: v ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/v.so - OK Parser: vala ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/vala.so - OK Parser: verilog ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/verilog.so - OK Parser: vhs ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/vhs.so - OK Parser: vim ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/vim.so - OK Parser: vimdoc ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/vimdoc.so - OK Parser: vue ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/vue.so - OK Parser: wgsl ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/wgsl.so - OK Parser: wgsl_bevy ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/wgsl_bevy.so - OK Parser: yaml ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/yaml.so - OK Parser: yang ABI: 13, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/yang.so - OK Parser: yuck ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/yuck.so - OK Parser: zig ABI: 14, path: /home/noom/.local/share/nvim/plugged/nvim-treesitter/parser/zig.so

Minimal vimrc that can reproduce this bug.

" Load vim-plug
call plug#begin(stdpath('data') . '/plugged')

Plug 'sainnhe/gruvbox-material'
Plug 'nvim-treesitter/nvim-treesitter'

call plug#end()

set termguicolors

colorscheme gruvbox-material

lua <<EOF
require("nvim-treesitter.configs").setup {
    ensure_installed = "markdown",
    highlight = {
        enable = true,
        disable = {},
    },
}
EOF

Steps to reproduce this bug using minimal vimrc

  1. neovim test.md
  2. write - [ ] test
  3. notice how the background of [ ] is turned blue.

Expected behavior

I'm not sure the intent was to actually have a plain blue background for checkboxes? It's very distracting and stands out a lot compared to the rest of gruvbox-material.

Also, instead of linking @text.todo to TSTodo, it would be interesting to take better advantage of the Treesitter groups by linking @text.todo.checked and @text.todo.unchecked to different colors to better visually differentiate the two cases.

Actual behavior

See the screenshot below

screenshot

It seems the group @text.todo is linked to the TSTodo group here: https://github.com/sainnhe/gruvbox-material/blob/master/colors/gruvbox-material.vim#L699 which is linked to the Todo group which is effectively setting a blue background there: https://github.com/sainnhe/gruvbox-material/blob/master/colors/gruvbox-material.vim#L359.

antoineco commented 1 year ago

it would be interesting to take better advantage of the Treesitter groups by linking @text.todo.checked and @text.todo.unchecked to different colors to better visually differentiate the two cases.

Fully agree. It was not intentional at all, @text.todo is for TODO: notes in code. We need specific groups for @text.todo.checked and @text.todo.unchecked. Any suggestion?

noomly commented 1 year ago

Ah yeah that makes sense! Other than changing the foreground instead of the background (or at least changing the background more subtly), I don't have a more specific suggestion as to what color to use. I'm going to trust you guys to pick the best as you've already done for the rest of this amazing colorscheme! :)

antoineco commented 1 year ago

Here is what I suggest:

image

You can try it out by adding the following snippet to your Neovim configuration:

local grpid = vim.api.nvim_create_augroup('custom_highlights_gruvboxmaterial', {})
vim.api.nvim_create_autocmd('ColorScheme', {
  group = grpid,
  pattern = 'gruvbox-material',
  callback = function()
    -- markdown checkboxes
    vim.api.nvim_set_hl(0, '@text.todo.unchecked', { link = 'Conceal' })
    vim.api.nvim_set_hl(0, '@text.todo.checked',   { link = 'Green'   })
  end
})

Instead of Conceal we could also use the Ignore group for unchecked box. Ignore is currently grey1, which is not as dark as bg5 used by Conceal: #5a524c #928374