I try my hand on Emacs and has a great time developing with Haskell. Below is a feature that is invaluable to me. After writing a function without the type, Doom Emacs automatically infer its type, and when I click on it, it automatically fill the type in.
The thing is, I would like to do it with keyboard binding instead of clicking. But I cannot find the command to bind it. Please help me if you know the command. Many thanks.
This text is a code-lense. You can use the 'lsp-avy-lens' function (M-x lsp-avy-lens). Doom emacs goes into an "avy" selection mode (see https://github.com/abo-abo/avy) of the various code-lense visible. Use keyboard to select the one you want to activate.