lsp-ltex
lsp-ltex copied to clipboard
lsp-ltex-active-modes has no effect
When I set lsp-ltex-active-modes after the package is loaded, it'll be too late.
It needs to be set before loading the package, but that's a bit inconvenient and not documented.
Ideally, the init code of the package should not run when loading the package, but it should be in wrapped in a function that can be called instead of (require 'lsp-ltex).
(That has also been reported as a side note in https://github.com/emacs-languagetool/lsp-ltex/issues/42.)
Confirmed, you are correct. 🤔 Everything has to be configured before it's loaded.
Thanks for acknowledging. I saw that you've added the "documentation" label. Fixing the docs will certainly be an improvement. Let me say though that I think the best fix is what I described above:
Ideally, the init code of the package should not run when loading the package, but it should be in wrapped in a function that can be called instead of
(require 'lsp-ltex).
Sorry, I'm a bit busy these days. Anyway, feel free to open PRs for this! :)