comments: use neovim native commenting (#2861)

* comments: use neovim native commenting

* Comment mapping : remap to gc/gcc

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
This commit is contained in:
Hanxx
2024-06-01 07:08:32 +05:30
committed by GitHub
co-authored by Sidhanth Rathod
parent 722b42f2c9
commit f9ed3a79db
2 changed files with 2 additions and 25 deletions
-15
View File
@@ -129,21 +129,6 @@ return {
end,
},
{
"numToStr/Comment.nvim",
keys = {
{ "gcc", mode = "n", desc = "comment toggle current line" },
{ "gc", mode = { "n", "o" }, desc = "comment toggle linewise" },
{ "gc", mode = "x", desc = "comment toggle linewise (visual)" },
{ "gbc", mode = "n", desc = "comment toggle current block" },
{ "gb", mode = { "n", "o" }, desc = "comment toggle blockwise" },
{ "gb", mode = "x", desc = "comment toggle blockwise (visual)" },
},
config = function(_, opts)
require("Comment").setup(opts)
end,
},
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter" },