Comments (22)
:h vim.treesitter.start()
from nvim-treesitter.
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.
@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.
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.
Nothing in the screenshot shows any underlining or undercurling. Are you sure it's not your terminal being extra helpful?
from nvim-treesitter.
yes i am sure as it disappears when I disable treesitter for that file and use the default highlighting of neovim.
from nvim-treesitter.
And is spelling enabled?
from nvim-treesitter.
:set spell?
nospell
from nvim-treesitter.
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.
ok... so do I need to file this bug at the markdown treesitter repo?
from nvim-treesitter.
I could also create a reproduction. maybe then it's easier...
from nvim-treesitter.
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.
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.
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.
Then your Neovim installation (of 0.10) is broken and you should complain to whomever you downloaded it from.
from nvim-treesitter.
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.
You have to test with nvim --clean -u test.lua
. If that still happens, I guarantee that it's your terminal.
from nvim-treesitter.
yes I test with that command. it still happens.
from nvim-treesitter.
I will test a different terminal emulator then
from nvim-treesitter.
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.
No, sorry. Make sure you have the latest version (3.5.0, the 3.4 releases are known to be broken).
from nvim-treesitter.
for anybody who sees this 🤦🏼♂️
from nvim-treesitter.
Related Issues (20)
- issue-6888.php has CRLF file endings, causing problems updating with LazyVim HOT 1
- Why am I getting "Failed to load parser for language 'lua'" error with TSInstall?
- [Bug] Invalid `injections.scm` scheme for `LaTeK` HOT 1
- Type.builtin highlight cannot be changed in C++ HOT 2
- :help breaks when nvim-treesitter is installed HOT 2
- Bug when loading treesitter HOT 4
- Treesitter broke with dockerls HOT 5
- Error while openin R filetype HOT 2
- Invalid Node Type, Typescript HOT 2
- Nvim doc text disappears HOT 4
- minus a number without a space results in no highlighting for the number HOT 3
- after updating nvim-treesitter, .R files yield nvim-treesitter lua errors HOT 6
- TS highlight not auto-enabling for Ruby files (highlight module is enabled & configured) HOT 3
- Astro highlighting not working HOT 2
- Performance Issues with Treesitter Plugin for .pdb Files in Neovim HOT 10
- Max diagnostics per-line example crashes when removing lines above errors HOT 2
- Indent level off by 1 for javascript/typescript
- Nix language injection breaks commentstring HOT 5
- Markdown heading continues to next line HOT 10
- Wrong indent in tsx file HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-treesitter.