5 ms·
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
by 63stack 1y 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 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 1y agoThat's cool. This was not easily accessible last time I used plain nvim. I'm glad the functionality has made its way there.