clojure-vim/clj-refactor.nvim

crrs doesn't work with folding enabled

Opened this issue · 1 comments

I use syntax folding for clojure (set fdm=syntax). To get crrs to work I had to:

  • set foldlevelstart=99 and open all folds in the current file.

I noticed that the folded blocks containing the symbol are changed in their entirety, instead of just the symbol being renamed.

Quick fix might be to do zv before making changes, or to set & unset the foldlevelstart (freezing the fold state somehow?)

There's possibly a better way to alter the symbol though.

Also noticed that it pollutes my undo history, ideally per-file it would be one undo. May not be possible though, just an ideal goal.

Struggling to think of a plugin that would operate similarly to this, maybe one of the grep ones?