From 5f23aaf1ca32c41b2bdbca33540e713ff185d5c0 Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 13 Aug 2022 05:52:33 +0530 Subject: [PATCH] update comment.nvim mappings ( fix its breaking change ) https://github.com/numToStr/Comment.nvim/commit/cd1c38163dd9a11247bcb333d72a36bae76c45f9 --- lua/core/mappings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index fb706ab..8ab1757 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -113,7 +113,7 @@ M.comment = { n = { ["/"] = { function() - require("Comment.api").toggle_current_linewise() + require("Comment.api").toggle.linewise.current() end, "toggle comment", }, @@ -121,7 +121,7 @@ M.comment = { v = { ["/"] = { - "lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())", + "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", "toggle comment", }, },