nvim: Comment: change {block,line}wise back to {block,line}

switched to latest tag, it has the old names
This commit is contained in:
tastytea 2022-08-16 03:24:41 +02:00
parent 2730bb8c55
commit 084b25db9b
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -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