antosha417 / nvim-lsp-file-operations

Neovim plugin that adds support for file operations using built-in LSP
Apache License 2.0
271 stars 16 forks source link

Cross filetype file operations (svelte) #39

Open einarpersson opened 1 week ago

einarpersson commented 1 week ago

I have just tried this plugin and it kinda works, but if I rename a typescript file I would like both typescript files and svelte files importing from this to be updated, but it seems as if only typescript files are affected.

Is this a known limitation of this plugin currently (working across files) or should it be possible to configure somehow? I understand that you may not be using svelte yourself, but I guess the question is a bit more general than just svelte.

antosha417 commented 6 days ago

Hi, thanks for reaching out!

This plugin acts as a proxy from the filetree plugin to the language server (LSP) of your choice. It doesn't have any language-specific logic built into it.

Which language server are you using? Does it support Svelte? If the LSP you're using doesn't support Svelte, I'd recommend opening an issue (or even better, submitting a PR) there. That way, the whole LSP community can benefit from your improvements, not just users of nvim-lsp-file-operations.

Let me know if you need any further guidance!