Giter VIP home page Giter VIP logo

Comments (22)

clason avatar clason commented on September 27, 2024 1

:h vim.treesitter.start()

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

You're seeing two highlights, I suspect: 1. link (underline) and 2. spellchecker (undercurl).

:Inspect will tell you exactly which highlight groups are applied in which order. (Note that gui attributes combine unless you specifically have nocombine in your highlight group.)

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

@clason resetting both highlight groups does not solve the issue. spellchecking isn't enabled, too. did you actually check if this is a bug? @spell @markup.link.label and @_label are shown when I run :TSHighlightCapturesUnderCursor, but when I override those, nothing happens.

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024
image

none of these highlight groups have a gui set to underline oder underdashed etc.
as i said, the underdash only appears when treesitter is enabled. using neovim default highlighting makes it possible to theme it with the markdownLinkText hl group.

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

Nothing in the screenshot shows any underlining or undercurling. Are you sure it's not your terminal being extra helpful?

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

yes i am sure as it disappears when I disable treesitter for that file and use the default highlighting of neovim.

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

And is spelling enabled?

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

:set spell?
nospell

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

Then given the (lack of) information, I can't help you. In any case, there is no issue with this plugin as the correct captures look to be applied (which is all this plugin does).

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

ok... so do I need to file this bug at the markdown treesitter repo?

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

I could also create a reproduction. maybe then it's easier...

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

No. If you can create a minimal(!) reproducing example to test with nvim --clean -u minimal.lua, you can open an issue at neovim (but search previous -- open and closed! -- issues first).

Note that the markdown parsers are now bundled with Neovim, so your repro will not require (and should not include) any plugins, including this one.

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

Okay thank you. Could you pinpoint me to a reference how to configure this so that treesitter is applied on markdown on files?

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

Sorry for bothering, but how would you install the markdown parser without this plugin? in the help file it says that it should be included already, but when I run vim.treesitter.start() in a .md file I get an error that says "no parser for 'markdown' language"

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

Then your Neovim installation (of 0.10) is broken and you should complain to whomever you downloaded it from.

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

ok after reinstall it worked. thanks. minimal repo is just a single line of markdown and minimal lua is just a single line of vim.treesitter.start(), and it still appears. I'm going to look for an old issue if this is already known, otherwise I will post an issue on the neovim main repo. thanks a lot :)

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

You have to test with nvim --clean -u test.lua. If that still happens, I guarantee that it's your terminal.

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

yes I test with that command. it still happens.

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

I will test a different terminal emulator then

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

Looks like it is indeed an issue with my terminal... how can this be? I'm using iTerm2 ... do you have any idea?

from nvim-treesitter.

clason avatar clason commented on September 27, 2024

No, sorry. Make sure you have the latest version (3.5.0, the 3.4 releases are known to be broken).

from nvim-treesitter.

uloco avatar uloco commented on September 27, 2024

lol found it -.-
image

for anybody who sees this 🤦🏼‍♂️

from nvim-treesitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.