-
I am not sure what is changed in
--[[ use({ "lewis6991/impatient.nvim" }) ]]
-- use({ "lewis6991/impatient.nvim" }) I have noticed that its happening for almost all the file types in which
local status_ok, comment = lk.require("Comment")
if not status_ok then
return
end
comment.setup({
-- opleader = {
-- line = "gc",
-- block = "gb",
-- },
-- ignore = "^$",
pre_hook = function(ctx)
local U = require("Comment.utils")
local location = nil
if ctx.ctype == U.ctype.block then
location = require("ts_context_commentstring.utils").get_cursor_location()
elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then
location = require("ts_context_commentstring.utils").get_visual_start_location()
end
return require("ts_context_commentstring.internal").calculate_commentstring({
key = ctx.ctype == U.ctype.line and "__default" or "__multiline",
location = location,
})
end,
})
NOTE: I haven't setup any Please help me with this. |
Beta Was this translation helpful? Give feedback.
Answered by
numToStr
Sep 7, 2022
Replies: 1 comment 1 reply
-
Can you remove Edit: Replace |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lalitmee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you remove
pre_hook
and try again.Edit: Replace
U.ctype.line
withU.ctype.linewise
andU.ctype.block
withU.ctype.blockwise