-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose a lua API or ex commands for renaming without nvim-tree? #13
Comments
Also came here for this. I don't use a file tree plugin at all and installing one just for the LSP renaming operation feels a bit bad |
Yeah, I totally agree. Would be a great addition to the plugin. @IndianBoy42 how would you like the api to look like? I think for now you can just call this function before moving the files around. require('lsp-file-operations.will-rename').callback({old_name: "path/to/file", new_name: "new/path/to/file"}) |
for the API, something like these seems fine to me? require('lsp-file-operations').rename({ old_name = "foo", new_name = "bar"}) edit: |
@chrisgrieser, do you want it to actually move the files? after calling callback There should also be a way of specifying which callback you want to call. Right now we have only |
I don't have a lot of time to work on this for now. You can try it in your local config and open a pr if you want. I'll happily merge it |
@chrisgrieser are you planning to integrate this into genghis wink wink ? :) |
@bugabinga No, but I'll gladly accept a PR if someone would wink wink :) |
This commit calls a callback in the `nvim-lsp-file-operations` plugin, if available. <antosha417/nvim-lsp-file-operations#13> The affacted file operations are "rename" and "move-rename".
No description provided.
The text was updated successfully, but these errors were encountered: