summaryrefslogtreecommitdiff
path: root/lua/user/keymaps.lua
diff options
context:
space:
mode:
authorchristianchiarulli <chrisatmachine@gmail.com>2021-12-14 18:04:23 -0500
committerchristianchiarulli <chrisatmachine@gmail.com>2021-12-14 18:04:23 -0500
commit62af78a2adecf96588afbc96acd6520f7e62f65b (patch)
tree5e9110bdb1da2afc2cf9afbd8c563d882190f9c5 /lua/user/keymaps.lua
parentb9a2bc855bbd7a7d54c9e280ee875393e30cf1a6 (diff)
add comments
Diffstat (limited to 'lua/user/keymaps.lua')
-rw-r--r--lua/user/keymaps.lua4
1 files changed, 4 insertions, 0 deletions
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", "<C-h>", "<C-\\><C-N><C-w>h", term_opts)
keymap("t", "<C-j>", "<C-\\><C-N><C-w>j", term_opts)
keymap("t", "<C-k>", "<C-\\><C-N><C-w>k", term_opts)
keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts)
+
+-- Comment
+keymap("n", "<leader>/", "<cmd>lua require('Comment').toggle()<CR>", opts)
+keymap("v", "<leader>/", ":lua require(\"Comment.api\").gc(vim.fn.visualmode())<cr>", opts)