nvim-ts-context-commentstring
Neovim treesitter plugin for setting the commentstring based on the cursor location in a file. (by JoosepAlviste)
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)
Our great sponsors
nvim-ts-context-commentstring | vim-context-commentstring | |
---|---|---|
26 | 3 | |
1,045 | 102 | |
- | - | |
6.7 | 0.0 | |
8 days ago | almost 2 years ago | |
Lua | Vim Script | |
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.
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.
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.
What are some alternatives?
When comparing nvim-ts-context-commentstring and vim-context-commentstring you can also consider the following projects:
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim - 🧛🏻♂️ Dark theme for Vim
Comment.nvim - :brain: :muscle: // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more
galaxyline.nvim - neovim statusline plugin written in lua
tcomment_vim - An extensible & universal comment vim-plugin that also handles embedded filetypes
dotfiles
neovim - Vim-fork focused on extensibility and usability
nerdtree - A tree explorer plugin for vim.
kommentary - Neovim commenting plugin, written in lua.
vim-commentary - commentary.vim: comment stuff out
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
nvim-ts-context-commentstring vs nvim-treesitter
vim-context-commentstring vs vim
nvim-ts-context-commentstring vs Comment.nvim
vim-context-commentstring vs galaxyline.nvim
nvim-ts-context-commentstring vs tcomment_vim
vim-context-commentstring vs dotfiles
nvim-ts-context-commentstring vs neovim
vim-context-commentstring vs nerdtree
nvim-ts-context-commentstring vs kommentary
vim-context-commentstring vs vim-commentary
nvim-ts-context-commentstring vs neoformat
vim-context-commentstring vs nvim-treesitter