tzachar / highlight-undo.nvim

Highlight changed text after any text changing operation
Apache License 2.0
302 stars 5 forks source link

conflict with ku1ik/vim-pasta #35

Open chapeupreto opened 1 week ago

chapeupreto commented 1 week ago

I started using highlight-undo.nvim and just noticed that it conflicts with ku1ik/vim-pasta plugin.

When I use the p (or P keys) the highlighting doesn't work as expected.

When I do :verbose nmap p I can see the following results:

n  p            @<Plug>AfterPasta
        Last set from ~/.local/share/nvim/plugged/vim-pasta/plugin/pasta.vim line 55
n  p           * <Lua 216: ~/.local/share/nvim/plugged/highlight-undo.nvim/lua/highlight-undo.lua:143>
        Last set from Lua (run Nvim with -V1 for more details) line 699

If I remove ku1ik/vim-pasta everything works fine!

I am using junegunn/vim-plug as my plugin manager.

Does anyone know how to get both of the plugins working? Or is there any alternative for vim-pasta that is more Neovim tailored?

tzachar commented 5 days ago

I believe this is related to the order the plugins are loaded. Try loading highlight-undo last.

chapeupreto commented 5 days ago

I believe this is related to the order the plugins are loaded. Try loading highlight-undo last.

Thanks for your reply. How do I do that considering I use vim-plug as my plugin manager?

tzachar commented 4 days ago

I assume the order you call vim-plug with the plugins matter.