Comment.nvim
nvim-ts-context-commentstring
Our great sponsors
Comment.nvim | nvim-ts-context-commentstring | |
---|---|---|
62 | 26 | |
3,469 | 1,026 | |
- | - | |
6.3 | 6.7 | |
7 days ago | 22 days ago | |
Lua | Lua | |
MIT License | MIT License |
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.
Comment.nvim
-
My 2024 PDE: NeoVim
Treesitter is a syntax parser that'll build a tree-like structure to enable anything from excellent syntax highlighting through to complex refactoring. There are so many creative ways you can use Treesitter, from jumping around text objects to commenting sections of code, it's a must-have in my books.
- Do I need a plugin manager ?
-
Noobie Needs a Nudge
A couple nice quality of life plugins would be: Comment (which lets you use a keybinding to comment/uncomment things), Autopairs (which will make the paired brackets/parentheses/etc.), and Rainbow2 (which color-matches the pairs if things like parentheses).
- [Neovim] Appel pour les tests - Intégration native JSX dans comment.nvim
-
How do I use this documentation to override default configuration? Learning the NeoVim ecosystem
I am reading the documentation for the [Comments](https://github.com/numToStr/Comment.nvim] plugin with :h comment.config and I see this
-
Plugin for comments
I was wondering what plugins you use for comments, actually, I'm using numToStr/Comment.
-
Question for lua Plugin devs.
Nowadays, people (mostly) autogenerate their help docs with either markdown or emmmylua are their source. You are facing an issue that I faced before with Comment.nvim.
-
What is the best commenter for tsx, jsx and css files with lua config
Comment.nvim?
-
Treesitter is unusable on typescript files
Based on your reply I recommend taking out the comment plugin, replacing it with https://github.com/nvim-treesitter/nvim-treesitter-textobjects and https://github.com/numToStr/Comment.nvim
- How to surround a paragraph with multiple charaters/symbols?
nvim-ts-context-commentstring
-
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?
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
kommentary - Neovim commenting plugin, written in lua.
tcomment_vim - An extensible & universal comment vim-plugin that also handles embedded filetypes
commented.nvim - Neovim commenting plugin in Lua. Support operator, motions and more than 60 languages! :fire:
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.
fzf-lua - Improved fzf.vim written in lua
neovim - Vim-fork focused on extensibility and usability
vim-commentary - commentary.vim: comment stuff out
clipboard-image.nvim - Neovim Lua plugin to paste image from clipboard.
neoformat - :sparkles: A (Neo)vim plugin for formatting code.