From 62af78a2adecf96588afbc96acd6520f7e62f65b Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Tue, 14 Dec 2021 18:04:23 -0500 Subject: add comments --- lua/user/keymaps.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/user/keymaps.lua') diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index fb8fdb4..9534dec 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -68,3 +68,7 @@ keymap("t", "", "h", term_opts) keymap("t", "", "j", term_opts) keymap("t", "", "k", term_opts) keymap("t", "", "l", term_opts) + +-- Comment +keymap("n", "/", "lua require('Comment').toggle()", opts) +keymap("v", "/", ":lua require(\"Comment.api\").gc(vim.fn.visualmode())", opts) -- cgit v1.2.3