ITADN

Treesitter (markdown) error: Invalid 'index': Expected Lua number

#98Closedserpro69 创建于 2025-09-16
S
serpro69commented
Hey 👋 , Have you seen this kind of error before when working in markdown files? Happens either via `o` key, or in insert mode just via `<Enter>` <img width="1602" height="762" alt="Image" src="https://github.com/user-attachments/assets/be0f27d1-6fee-4434-b6ce-9a217fea86de" /> I've tested it on your config, and seems like it's happening there as well, not just in my fork. Also made a screen recording of it (using your config): https://drive.google.com/file/d/1XhgVs4anuIqHwnopBVoOYErh_w7odhrM/view?usp=sharing , and a gist with a sample chatgpt-generated readme where it's reproducible (you just need to move around a bit, and then try `o` or `i + <Enter>`): https://gist.github.com/serpro69/1659685aeb423e1dd84f129adb303d91 It doesn't (seem to) happen in all markdown files, so there could be some parts of the contents that are causing this. Trying to narrow it down. Wondering if you might have encountered this also and know a possible fix or workaround?
关闭于 2025-09-16 8 条评论