this post was submitted on 06 Jul 2023
12 points (100.0% liked)

Neovim

2183 readers
1 users here now

founded 1 year ago
MODERATORS
 

I have a neovim with lots of plugins, and macros are broken. After I record them and I try to run them they stop in the middle, and won't replay every action I did.

My guess is that some plugin is breaking it, I noticed that autocompletition is usually not working, so I avoid it. My question is how can I find any other plugins that break it, and fix it?

top 5 comments
sorted by: hot top controversial new old
[–] cd_slash_rmrf 4 points 1 year ago* (last edited 1 year ago) (1 children)

without more information, the most straightforward way is to disable your plugins one at a time and test if things are working (could go the other direction: start from no plugins, and install them one at a time). do this by commenting/uncommenting lines in your config and rerunning sync/clean/install or whatever with your plugin manager.

ideally youd have some idea about what specifically is breaking for you. since you say completion maybe start with whatever you use for that (cmp, mason setup, coc, deoplete, ycm)?

edit: forgot to say, but if you post your config that could be helpful in case there's an obvious err somewhere. is it all macros that fail or only some with specific motions?

[–] [email protected] 1 points 1 year ago (1 children)

Here is my config, its ugly and old: https://gitlab.com/catlover_stuff/nvim-config

I'll try to find an example macro that fails, usually I try to avoid complex stuff during recording one, like: using autocomplete or plugin commands.

My guess is that either kylechui/nvim-surround or windwp/nvim-ts-autotag kicks in during typing, but doesn't during replaying a macro

[–] vhl 1 points 1 year ago (1 children)

Sorry, I can't access your link. It said 'Page not found'.

[–] [email protected] 1 points 1 year ago

my bad, forgot to set it to public

[–] howarddo 2 points 1 year ago

If you suspect plugins break your macros, do a binary chop disable plugins until you find the culprit. That's what I usually do.