Skip to content
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

Using vim-repeat with nvim and plugin commands mapped throught lua #97

Closed
mahaaaham opened this issue Oct 15, 2023 · 1 comment
Closed

Comments

@mahaaaham
Copy link

Hi,

I first apology because this is not a technical issue but more an incomprehension of my part about the use of this plugin with lua commands.
I tried to ask the question in stackoverflow before asking it here, but it had no success ( https://stackoverflow.com/questions/77223892/repeat-with-a-motion-plugin-command-mapped-in-lua-throught-keyset )

I use, un neovim, the plugin coc.nvim with the proposed default configuration that set (in a lua file) :

-- Use `[g` and `]g` to navigate diagnostics
-- Use `:CocDiagnostics` to get all diagnostics of current buffer in location list
keyset("n", "[g", "<Plug>(coc-diagnostic-prev)", {silent = true})
keyset("n", "]g", "<Plug>(coc-diagnostic-next)", {silent = true})

I want to make these motions repeteable with ".".

As said in the main page of your plugin, I could use the following command at the end of my map functions:

silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)

But I have no idea how to actually put this line of code with the "keyset" command of the coc.nvim plugin.

Do you have an idea of how to do it?

Thanks for reading me!

@wookayin
Copy link

See #92 (comment)

@tpope tpope closed this as completed Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants