You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to check here once, before going for an issue (if it really is one).
I wanted to use Lua's single line commenting style for visual block as well. So was trying to hack around the suggested tsx/jsxpre_hook to achieve this. But I noticed in case of blockwise comments command, the pre_hook is not getting called. Is that intended ?
For reference:
Command for blockwise comments in visual mode: :lua require('Comment.api').toggle.blockwise(vim.fn.visualmode(), { ignore = '^$', padding = true })<CR>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Wanted to check here once, before going for an issue (if it really is one).
I wanted to use Lua's single line commenting style for visual block as well. So was trying to hack around the suggested
tsx/jsx
pre_hook
to achieve this. But I noticed in case of blockwise comments command, thepre_hook
is not getting called. Is that intended ?For reference:
:lua require('Comment.api').toggle.blockwise(vim.fn.visualmode(), { ignore = '^$', padding = true })<CR>
pre_hook
function:Thanks!
Beta Was this translation helpful? Give feedback.
All reactions