Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

TSNodeUnderCursor's popup has a weird red highlighed underline char under the Node field #116

@unphased

Description

@unphased

Describe the highlighting problem

image

I was also able to get this by calling :TSHighlightCapturesUnderCursor with my cursor on top of the red underline char. Notice another red underline char is also highlighted red in the ensuing popup.

image

Example snippet that causes the problem

I think it's just some kind of syntax that is marking all _ chars in a red bgcolor. Not sure it's a TS problem specifically. But dunno where else to report this.

Tree-sitter parsing result

N/A, doesn't work in this popup. I tried to look up filetype in the popup and it says empty.

Example screenshot

included above, sorry

Expected behavior

no unsightly red underscore char?

Output of :checkhealth nvim-treesitter

==============================================================================
nvim-treesitter: require("nvim-treesitter.health").check()

Installation ~
- OK `tree-sitter` found 0.20.7 (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v16.19.0 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
  Version: Apple clang version 14.0.0 (clang-1400.0.29.202)
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

OS Info:
{
  machine = "arm64",
  release = "21.6.0",
  sysname = "Darwin",
  version = "Darwin Kernel Version 21.6.0: Sun Nov  6 23:31:13 PST 2022; root:xnu-8020.240.14~1/RELEASE_ARM64_T6000"
} ~

Parser/Features         H L F I J
  - cpp                 ✓ ✓ ✓ ✓ ✓
  - c                   ✓ ✓ ✓ ✓ ✓
  - json                ✓ ✓ ✓ ✓ .
  - lua                 ✓ ✓ ✓ ✓ ✓
  - help                ✓ . . . ✓
  - yaml                ✓ ✓ ✓ ✓ ✓
  - vim                 ✓ ✓ ✓ . ✓

  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} ~


### Output of `nvim --version`

```text
NVIM v0.9.0-dev-869+g964ae205a-dirty
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by slu@Stevens-MacBook-Pro.local

Features: +acl +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/HEAD-964ae20/share/nvim"

Run :checkhealth for more info

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions