Replies: 4 comments 3 replies
-
Hi! Thanks! This kind of action won't be part of 'mini.files' itself, because, yes, utilizing events is the proposed approach here. So I'll convert it to discussion. |
Beta Was this translation helpful? Give feedback.
-
As per your code, one obvious thing that stands out is that callbacks receive extra info inside Other than that, I am not sure how 'lsp-file-operations' is supposed to work and if the other code is correct. |
Beta Was this translation helpful? Give feedback.
-
I sent draft PR to this repo. @dxu, It works but doesn't as I expect. Maybe you can help me to fix it. |
Beta Was this translation helpful? Give feedback.
-
@echasnovski , the code provided by @andvarfolomeev doesn't seem to work now. |
Beta Was this translation helpful? Give feedback.
-
Contributing guidelines
Module(s)
nvim-tree, nvim-lsp-file-operations,
Description
Hi, I love your work! I use several of the plugins in my own setup, and absolutely love mini.files. Is there a way to enable refactoring of imports on file renaming, similar to nvim-lsp-file-operations for nvim-tree/neotree?
I've tried to mimic the functionality using the mini.files events, but it doesn't seem to work - but I'm a bit of a neovim noob, so not sure if I'm doing something wrong.
Here I'm setting up a listener on the
MiniFilesActionRename
event, and trying to mimic what nvim-lsp-file-operations does for handlingwillRenameFiles
, but it doesn't seem to do anythingBeta Was this translation helpful? Give feedback.
All reactions