SmiteshP / nvim-navic

Simple winbar/statusline plugin that shows your current code context
Apache License 2.0
1.41k stars 50 forks source link

Recent update breaks markdown files without headings #99

Closed chrisgrieser closed 1 year ago

chrisgrieser commented 1 year ago

As far as I can tell, markdown files without headings always get this error, popping up every half second (updatetime, I assume), making these buffers unusable. Had to disable navic for markdown.

CleanShot 2023-03-26 at 22 55 58

mischavandenburg commented 1 year ago

I have the same issue for nearly empty files or bash scripts of only a few lines.

ueaner commented 1 year ago

Update to ec0ae4a , have the same issue, temporarily rolled back to 59b997f

SmiteshP commented 1 year ago

@chrisgrieser @mischavandenburg @ueaner Can you guys share some minimal examples where you are seeing this issue and which LSP you are using for that file?

SmiteshP commented 1 year ago

Looks like the issue was occuring on line 325, perhaps this PR #100 has already fixed it 🤔 Can you guys check if latest commit is working?

ueaner commented 1 year ago

@SmiteshP Thanks, this works for me.

chrisgrieser commented 1 year ago

yep, the latest seems to have fixed it. Thanks!