Rename paths/import modules (Python?)

Hi! been using nvim full-time, no regrets and it’s the best editor (lol). However I am starting to feel some limitations in large codebases when it comes to renaming files and have that sync across imports in my codebase.

I mainly code in Python so this is more of a pyright/python-lsp problem rather than nvim’s, but I was wondering how devs using python and other programming languages manage to refactor filenames (much like PyCharm does). I was also considering writing a telescope plugin that leverages ripgrep and sed to do the find and replace.

If helpful, I think pylsp-rope is working on improving this feature. You can take a look at: Confusion about rename support · Issue #255 · python-lsp/python-lsp-server · GitHub

1 Like