From 084b25db9b8de1ea77b466265985f36e3477f3d5 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 16 Aug 2022 03:24:41 +0200 Subject: [PATCH] nvim: Comment: change {block,line}wise back to {block,line} switched to latest tag, it has the old names --- .config/nvim/lua/my/coding.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/my/coding.lua b/.config/nvim/lua/my/coding.lua index d0310dc..21d8a61 100644 --- a/.config/nvim/lua/my/coding.lua +++ b/.config/nvim/lua/my/coding.lua @@ -22,14 +22,14 @@ require('Comment').setup({ local context_internal = require('ts_context_commentstring.internal') local location = nil - if ctx.ctype == comment_utils.ctype.blockwise then + if ctx.ctype == comment_utils.ctype.block then location = context_utils.get_cursor_location() elseif ctx.cmotion == comment_utils.cmotion.v or ctx.cmotion == comment_utils.cmotion.V then location = context_utils.utils.get_visual_start_location() end return context_internal.calculate_commentstring { - key = ctx.ctype == comment_utils.ctype.linewise and "__default" or "__multiline", + key = ctx.ctype == comment_utils.ctype.line and "__default" or "__multiline", location = location, } end