Comments (5)
That seems quite weird, I couldn't reproduce the issue. Did this just start happening recently? There were some breaking changes merged a day or 2 ago: #82 but I don't know if they would cause such issues.
One thing to try would be to update your Neovim version, I think that one of the recent PRs that was merged required Neovim version 0.9.4 as it uses some newer Treesitter APIs.
If that doesn't help, then could you post a minimal configuration where the issue could be reproduced (based on https://github.com/JoosepAlviste/nvim-ts-context-commentstring/blob/main/utils/minimal_init.lua)? The PR template should have instructions for starting a new minimal config: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/blob/main/.github/ISSUE_TEMPLATE/bug_report.yml.
from nvim-ts-context-commentstring.
@JoosepAlviste Hello! Hope you're doing well.
I finally realized the problem. For some reason in option.lua
I have the following:
opt.filetype = "on"
And this was the cause of the bug. After removing this faulty line, nvim-ts-context-commentstring
works flawlessly again.
My apologies and thank you again. Have a good day!
from nvim-ts-context-commentstring.
Thank you for getting back to me. I appreciate it!
I can confirm this bug only exists after the BR a few days ago.
I'm currently on Neovim 0.9.4:
:version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1700008891
I'll look into it and provide the minimal config.
Thank you again for creating this awesome plugin!
from nvim-ts-context-commentstring.
Apologies for my late reply. I still have no idea why the latest commit would not work, but I found the commit before the BR works:
{ "JoosepAlviste/nvim-ts-context-commentstring", commit = "6c30f3c8915d7b31c3decdfe6c7672432da1809d" },
I think I'll stick to it for now. I'll debug when I have time. Thank you!
from nvim-ts-context-commentstring.
Not sure what the issue could be since I can't reproduce it 😕 on
is such a weird value for filetype
to have...
The only thing I can think of right now would be to use the minimal config as a base to try to reproduce it, adding small bits of your configuration at a time.
By the way, if you manually do :set filetype=lua
in a Lua file, then does it provide the correct highlighting and commentstring
updating?
from nvim-ts-context-commentstring.
Related Issues (20)
- Svelte only returns html-comment for all locations HOT 2
- Need help in debugging strange situation HOT 1
- Work-around to make this work with native comments in Neovim 0.10 HOT 4
- Incorrect commentstring for erb tags on eruby files
- Incorrect commentstring inside <?php ?> tags HOT 1
- Option 'commentstring' is empty in .swift file HOT 3
- Does this work well when nvim-treesitter 1.0 is out? HOT 4
- plugin cause j/k position incorrect HOT 6
- tsx is not properly commenting HOT 8
- Vue comment not working properly HOT 2
- This plugin doesn't set the `comments` var. HOT 2
- BREAKING CHANGES HOT 6
- Incorrent commentstring for inline markdown code blocks HOT 4
- Commenting is slow in large Markdown files HOT 3
- context_commentstring nvim-treesitter module is deprecated HOT 2
- tsx is not properly commenting even when ts-context-commentstring works HOT 1
- Please do not create unnecessary global variables
- Vue comment js/ts using html comment tags HOT 2
- Doesn't work ootb with mini.comment / Comment.nvim (React) HOT 2
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-ts-context-commentstring.