zlacker

[parent] [thread] 1 comments
1. 63stac+(OP)[view] [source] 2025-07-28 11:17:08
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.

replies(1): >>virapt+U4
2. virapt+U4[view] [source] 2025-07-28 11:58:18
>>63stac+(OP)
That's cool. This was not easily accessible last time I used plain nvim. I'm glad the functionality has made its way there.
[go to top]