Comments (3)
For me using https://github.com/JoosepAlviste/nvim-ts-context-commentstring as described here: https://github.com/numToStr/Comment.nvim#-treesitter works better, though not perfectly. TypeScript and JavaScript, CSS and SCSS are correctly commented.
The only things I noticed are, that end tags are commented as if they were part of the language inside of the tag and that using block comments when the cursor is on the first line of a different language or the visual selection contains the first line of a different language doesn't work. With line comments, it does work though.
from comment.nvim.
thanks! will give it a try
from comment.nvim.
Thanks, It totally works for my needs. It was my fault for not reading the documentation properly.
from comment.nvim.
Related Issues (20)
- `gqq` to break long lines is broken HOT 2
- Not working for .kv files
- Issue with HCL files HOT 1
- how to add a header comment? HOT 3
- [Comment.nvim] nil for .lua files
- Adding a shortcut that selects the kind of comment
- Wrong commenting on HTML files. HOT 1
- Add blockwise comment support for verilog/systemverilog
- Support templ HOT 1
- How to support context filetype?
- Uses `//` as commentstring in html HOT 4
- NOT A BUG/ISSUE [a gen qs] HOT 2
- How to just do comment or uncomment?
- Willing to accept a PR if I add a setup option "default commentstring"? HOT 2
- comment config working on arch but not on linux (arch) HOT 1
- Retain visual mode after commenting HOT 1
- [BUG] When I try to comment linewise in visual mode, unrelated or extra code gets commented HOT 5
- Adding a FOSS license HOT 2
- Not working for typescript react HOT 1
- BUG: fails silently in absence of LuaJIT HOT 1
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 comment.nvim.