smjonas / inc-rename.nvim

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

Safe all affected files automatically #60

Closed svartkanin closed 1 month ago

svartkanin commented 1 month ago

When running a rename and there are multiple files affected, is there a way to auto safe all of them after the rename?

smjonas commented 1 month ago

You can use the post_hook option like this:


require("inc-rename").setup {
  post_hook = function()
    vim.cmd("wa")
  end
}
`