Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-facing way to modify :activation-fn or :major-modes, and initialization-options of an existing LSP client. #4424

Open
KaranAhlawat opened this issue Apr 10, 2024 · 0 comments

Comments

@KaranAhlawat
Copy link
Sponsor

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.

@KaranAhlawat 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant