In e.g. haskell this is one of the most fundamental features. Another [non-LSP plugin](https://github.com/DanielG/ghc-mod) can already do that:  From what I heard the [haskell language server](https://github.com/haskell/haskell-ide-engine) also has support for it (e.g. in VS Code): https://github.com/DanielG/ghc-mod/issues/900#issuecomment-397517309