https://neovim.io/doc/user/lsp.html#vim.lsp.buf.rename() (HN seems to not link the () part, you have to add it yourself)
All the other similar fanciness like renaming a file and automatically updating module references is also provided by the LSP, and is also available in nvim.