-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line toggler doesn't work (v0.6.1) #265
Comments
I highly doubt that Beside that, in |
@numToStr Thank you very much. I use Also, I have tried everything listed in #115 . I even see |
@delminskii You should also follow PR #183 to know more about the deprecated functions etc. Obviously this is for future reference, when you are ready to upgrade. |
@numToStr Yeah, thank you. I've had to upgrade to the latest (current) version of your plugin and rewrite my code a little bit. Now everything works fine. function _G.___gdc(vmode)
local range = U.get_region(vmode)
local lines = U.get_lines(range)
-- Copying the block
local srow = range.erow
A.nvim_buf_set_lines(0, srow, srow, false, lines)
-- Doing the comment
require('Comment.api').toggle.linewise(vmode)
-- Move the cursor
local erow = srow + 1
local line = U.get_lines({ srow = srow, erow = erow })
local _, col, _ = string.find(line[1], '^(%s*)')
A.nvim_win_set_cursor(0, { erow, col })
end |
It is seems that because of configuration provided to plugin inside |
I noticed a toggle (set as a custom
<Leader>cc
shortcut by me) doesn't work anymore after some update I don't know which. Other than that works perfect. I've tried neovim both 0.7.2 & 0.8.0 - still no luck.Btw, the mappings listed in
extra
table of the config below works great.Timeoutlen
value equals to 1000.Plugin version tag:
0.6.1
(set via packer plugin manager)Neovim version: the latest
0.9.0
build from github repo (appimage build)My plugin related settings:
The text was updated successfully, but these errors were encountered: