Remix.run Logo
63stack 5 days ago

This is something that the LSP provides (even in VScode), and is available in nvim yes. The command is vim.lsp.buf.rename(), and it is bound to "grn" by default.

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.

viraptor 5 days ago | parent [-]

That's cool. This was not easily accessible last time I used plain nvim. I'm glad the functionality has made its way there.