jose-elias-alvarez / typescript.nvim

A Lua plugin, written in TypeScript, to write TypeScript (Lua optional).
The Unlicense
496 stars 33 forks source link

Update imports on file move #64

Open jose-elias-alvarez opened 1 year ago

jose-elias-alvarez commented 1 year ago

Neovim just merged support for workspace/didChangeWatchedFiles. The method is not currently supported by typescript-language-server, and based on this issue, it seems that adding support upstream is unlikely.

We could add an option to register the client and use our existing rename file functionality to automatically update imports when files are moved (nvim-lsp-ts-utils had a primitive and unreliable version of this).