]> git.rmz.io Git - dotfiles.git/commitdiff
nvim/coding: switch to comments.nvim
authorSamir Benmendil <me@rmz.io>
Wed, 3 May 2023 23:26:11 +0000 (00:26 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:23:07 +0000 (17:23 +0000)
It supports the block comments, mini.comment doesn't.

nvim/lua/plugins/coding.lua

index 6194756e394ce4d5e4ab1c4d36fea3ecfc522a06..c1b1c39a8e3b61301105fed7e2d8911e91ce0dd0 100644 (file)
@@ -86,4 +86,20 @@ return {
       },
     },
   },
+  -- comments
+  {
+    "numToStr/Comment.nvim",
+    opts = {
+      toggler = {
+        line = "gcc",
+        block = "gbb",
+      },
+      mappings = {
+        basic = true,
+        extra = true,
+      },
+    },
+  },
+  { "JoosepAlviste/nvim-ts-context-commentstring", enabled = false },
+  { "echasnovski/mini.comment", enabled = false },
 }