emacs-lsp / lsp-haskell

lsp-mode :heart: haskell
https://emacs-lsp.github.io/lsp-haskell
GNU General Public License v3.0
236 stars 62 forks source link

Completion in comments is annoying #135

Closed michaelpj closed 2 years ago

michaelpj commented 2 years ago

At the moment we tell lsp-mode that we want completion in comments (https://github.com/emacs-lsp/lsp-haskell/blob/master/lsp-haskell.el#L296). As the comment says, we need this in order to get completions for language pragmas (since they're in a comment), but it's really annoying in other comments. I don't know what to do about this.

michaelpj commented 2 years ago

@alanz suggests that maybe pragmas should not be considered comments, which is an interesting idea. I think ultimately this would require us to change something in haskell-mode.