You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature related or already mentioned on the wishlist?
No.
Describe your feature here.
Currently, from my understanding, the only way to modify the major-modes in which an LSP client activates is by either a.) replicating the client creation code in your own init file, or b.) modify the locally available lsp-mode source code itself and maintaining that through the various upgrades, resolving any merge conflicts that may arise.
While this is doable, I think a user-facing way to modify activation-fn or major-mode (whichever is applicable, or maybe both) should be provided, where you could essentially "tack on" major-modes you want to activate a certain LSP in.
For instance, the lsp-emmet client only activates in certain modes. I would like it to activate in elixir-ts-mode as well (while writing inline HTML), and for that I'd need to modify the client source itself.
Similar story goes for initialization-options.
The text was updated successfully, but these errors were encountered:
KaranAhlawat
changed the title
User-facing way to modify activation-fn or major-mode, and initialization-options of an existing LSP client.
User-facing way to modify :activation-fn or :major-modes, and initialization-options of an existing LSP client.
Apr 10, 2024
Is your feature related or already mentioned on the wishlist?
No.
Describe your feature here.
Currently, from my understanding, the only way to modify the major-modes in which an LSP client activates is by either a.) replicating the client creation code in your own init file, or b.) modify the locally available
lsp-mode
source code itself and maintaining that through the various upgrades, resolving any merge conflicts that may arise.While this is doable, I think a user-facing way to modify activation-fn or major-mode (whichever is applicable, or maybe both) should be provided, where you could essentially "tack on" major-modes you want to activate a certain LSP in.
For instance, the
lsp-emmet
client only activates in certain modes. I would like it to activate inelixir-ts-mode
as well (while writing inline HTML), and for that I'd need to modify the client source itself.Similar story goes for
initialization-options
.The text was updated successfully, but these errors were encountered: