vim-context-commentstring
Vim plugin that sets the value of ‘commentstring’ to a different value depending on the region of the file you are in. (by suy)
nvim-ts-context-commentstring
Neovim treesitter plugin for setting the commentstring based on the cursor location in a file. (by JoosepAlviste)
vim-context-commentstring | nvim-ts-context-commentstring | |
---|---|---|
3 | 26 | |
102 | 1,056 | |
- | - | |
0.0 | 6.7 | |
almost 2 years ago | 12 days ago | |
Vim Script | Lua | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-context-commentstring
Posts with mentions or reviews of vim-context-commentstring.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-25.
-
Alternatives To Comment.nvim for TSX support?
A combination of this plugin to set the commentstring option based on syntax highlighting and a simple comment plugin is a combo I like.
-
Treesitter plugin for dynamically setting commentstring
I previously used suy/vim-context-commentstring for dynamically setting the commentstring setting, but since it doesn't really work with treesitter, I decided to create a new version that does work with treesitter.
-
kommentary: Neovim commenting plugin, written in lua.
As I understand it, the commentstring changes depending on context (Where you are in the file), I haven't tested this, but https://github.com/suy/vim-context-commentstring promises to fix that.
nvim-ts-context-commentstring
Posts with mentions or reviews of nvim-ts-context-commentstring.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-18.
-
Trying to set up a dev environment for Vue.js in Astrovim
I work with Vue every day, but I don't use AstroNvim. The Volar language server with Take Over Mode works great for me. I don't know what exactly is broken for you when commenting, but my plugin nvim-ts-context-commentstring works for setting the correct commentstring in the Vue single file component sections with Treesitter.
-
Comment your code more efficiently in Neovim
Fair enough, although this helps a lot with this issue.
-
What is the best commenter for tsx, jsx and css files with lua config
I haven't tried mini, but judging by the README he would also have to use a plugin the likes of nvim-ts-commentstrung in a p re / post hook to get the adequate comment string in files with multiple languages.
- How to surround a paragraph with multiple charaters/symbols?
-
Commenting both erb and handlebars files
I use https://github.com/JoosepAlviste/nvim-ts-context-commentstring with vim-commentary
-
JavaScript and CSS in HTML files
I think you could use Comment.nvim combine with nvim-ts-context-commentstring like explained in this video
-
Is it possible to configure nvim_comment to change the way it comments if I am inside a jsx/tsx block or outside a jsx/tsx block?
you should be able to integrate it with nvim-ts-context-commentstring as specified in the nvim-comment README
-
Svelte commenting
Are you using nvim-ts-context-commentstring?
-
Plugin suggestion
You can try using comment + context-comment, I've found it better for treesitter supported code commenting personally.
-
Context commenting not woking on ReactJs
I'm using Context Commentstring & Comment.nvim together.
What are some alternatives?
When comparing vim-context-commentstring and nvim-ts-context-commentstring you can also consider the following projects:
vim - 🧛🏻♂️ Dark theme for Vim
nvim-treesitter - Nvim Treesitter configurations and abstraction layer