summary refs log tree commit diff stats
path: root/.config/nvim/lua/plugins/comment.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/comment.lua')
-rw-r--r--.config/nvim/lua/plugins/comment.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/comment.lua b/.config/nvim/lua/plugins/comment.lua
new file mode 100644
index 0000000..c37d7cd
--- /dev/null
+++ b/.config/nvim/lua/plugins/comment.lua
@@ -0,0 +1,21 @@
+return {
+
+    {
+        "numToStr/Comment.nvim",
+        opts = {
+            -- Visual mappings
+            opleader = {
+                line = '<Space>/',
+                block = '<Space>?',
+            },
+
+            -- Normal mappings
+            toggler = {
+                line = '<Space>/',
+                block = '<Space>?',
+            }
+        },
+        lazy = false
+    }
+
+}