brenton-leighton / multiple-cursors.nvim

A multi-cursor plugin for Neovim that works in normal, insert/replace, or visual modes, and with almost every command
Apache License 2.0
249 stars 7 forks source link

[ FIXED ] All is not working as expected #75

Closed MrMic closed 1 month ago

MrMic commented 1 month ago

Hi,

I work with AstroNvim and use neovim version 0.10.1 When I have all my selections made, and I press "i" or "a," only the deletion works! I mean it delete letter(s) from every selection and that is expected, but if I want to add letters only the last selection receive the letter and not the others selections.

Can you fix that?

Rgds,

PS: anyway is is an amazing work, when it works...

brenton-leighton commented 1 month ago

It sounds like it's a problem with the autocmd that handles character insertion. It could be due to compatibility with another plugin. Can you try adding vim.print(char) after line 13 in lua/multiple-cursors/insert_mode/character.lua? It should print a message with the character you've inserted.

MrMic commented 1 month ago

Hi,

Added as requested but nothing is printed anywhere... Where should I look to see the character?

I am with AstroNvim so, may be, I have yo do things differently? no?

MrMic commented 1 month ago

Sorry i messed up with another plugin which is called "multicursors"

Sorry for the noise. My bad. Rgds,