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