From 8fb4d95e6c50df9e569bddb32a1d8731c4897186 Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Sun, 10 Dec 2023 17:55:15 +0700 Subject: [PATCH] update keymap comment string --- lua/user/keymaps.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 30e7231..aabc5bc 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -35,6 +35,8 @@ keymap("x", "", "p", opts) keymap("n", "", "u", opts) keymap("x", "", ":undo", opts) keymap("v", "", ":undo", opts) +keymap("n", "", "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", opts) +keymap("v", "", "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", opts) -- Resize with arrows -- keymap("n", "", ":resize -2", opts)