smjonas / inc-rename.nvim

Incremental LSP renaming based on Neovim's command-preview feature.
MIT License
637 stars 8 forks source link

Execute `post_hook` even when canceled #61

Open eth3lbert opened 3 weeks ago

eth3lbert commented 3 weeks ago

Thank you for the great plugin!

I would like to suggest that the post_hook also be executed when the operation is canceled. Consider a scenario where we set inccommand to split and reset it in post_hook. Currently, post_hook only runs when the operation is executed successfully, which means it won't reset inccommand if inc-rename is canceled.