From df6fce9a679d7f016e17c2223fccd307dfb177bc Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 21 May 2024 09:22:17 -0400 Subject: [PATCH] feat(comment): add `ts-comments.nvim` --- lua/astrocommunity/comment/ts-comments-nvim/README.md | 7 +++++++ lua/astrocommunity/comment/ts-comments-nvim/init.lua | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lua/astrocommunity/comment/ts-comments-nvim/README.md create mode 100644 lua/astrocommunity/comment/ts-comments-nvim/init.lua diff --git a/lua/astrocommunity/comment/ts-comments-nvim/README.md b/lua/astrocommunity/comment/ts-comments-nvim/README.md new file mode 100644 index 000000000..a9d17e4ca --- /dev/null +++ b/lua/astrocommunity/comment/ts-comments-nvim/README.md @@ -0,0 +1,7 @@ +# 🚀 ts-comments.nvim + +**Requirements:** Neovim v0.10+ + +Tiny plugin to enhance Neovim's native comments + +**Repository:** diff --git a/lua/astrocommunity/comment/ts-comments-nvim/init.lua b/lua/astrocommunity/comment/ts-comments-nvim/init.lua new file mode 100644 index 000000000..ffb798a37 --- /dev/null +++ b/lua/astrocommunity/comment/ts-comments-nvim/init.lua @@ -0,0 +1,10 @@ +return { + { "numToStr/Comment.nvim", enabled = false }, + { "JoosepAlviste/nvim-ts-context-commentstring", enabled = false }, + { + "folke/ts-comments.nvim", + opts = {}, + event = "VeryLazy", + enabled = vim.fn.has "nvim-0.10.0" == 1, + }, +}