nvim: Comment: change {block,line}wise back to {block,line}
switched to latest tag, it has the old names
This commit is contained in:
parent
2730bb8c55
commit
084b25db9b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user