Skip to content

rtuszik/nvim-remove-comments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-remove-comments

A simple Neovim plugin to remove all comments from the current buffer using Tree-sitter.

Great for stripping LLM-generated comments or cleaning up code.

Showcase


✨ Features

  • Removes all comment nodes from the current buffer
  • Tree-sitter powered: works reliably across languages
  • Fast and minimal
  • Works with many filetypes (JS, TS, Lua, HTML, Python, etc.)

🧠 Why?

Sometimes you work on projects generated by LLMs, and the code ends up full of messy, useless comments everywhere. Recently, I faced this problem and decided to write this plugin to quickly clean them up. It will be useful for other developers too, because messy comments make code harder to read and maintain.


⚡ Installation

{
  "KashifKhn/nvim-remove-comments",
  config = function()
    require("nvim-remove-comments").setup()
  end,
}

About

nvim-remove-comments is a minimal Neovim plugin that removes all comments from the current buffer using Tree-sitter. Ideal for cleaning up files or stripping comments auto-generated by AI tools. Works with many languages out of the box.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Lua 100.0%