Here is the situation:
- the code currently compiles
- we have OCaml lsp running on nvim
- we have a variable we want to rename (say, from
- type signatures stay the same, the only thing that changes is the name
question: can we rename all references of the variable correctly ?
argument for yes: IntelliJ F2 does this fine for Rust / Java / Scala / …
argument for no: apparently “jump to def” is non-trivial in OCaml, and “list all refs” is unsolved in Merlin; so “rename all refs” seems by definition not solved
I currently do NOT have this working in neovim. I’m trying to figure out if (1) this is my fault, i.e. there is a way to do this in OCaml LSP, but I’m unaware of (2) this is currently not possible with OCaml LSP.