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
Generate LSP configuration sections from defcustom
Fixesemacs-lsp#727Fixesemacs-lsp#715Fixesemacs-lsp#695
- introduced `lsp-configuration-section` for converting defcustom to
configuration sections
- introduces `lsp-generate-settings` to make converting from package.json
manifest to Emacs defcustom sections
- Used `lsp-configuration-section` for rls/vls/ruby-ls/pyls.
TODO: fix get configuration method
TODO: send the configuration to the server when it has changed.
Copy file name to clipboardExpand all lines: README.org
+24-7Lines changed: 24 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@
36
36
- [[#contributions][Contributions]]
37
37
- [[#troubleshooting][Troubleshooting]]
38
38
- [[#adding-support-for-languages][Adding support for languages]]
39
+
- [[#registering-server][Registering server]]
40
+
- [[#sections][Sections]]
39
41
- [[#faq][FAQ]]
40
42
- [[#see-also][See also]]
41
43
@@ -218,13 +220,28 @@
218
220
#+caption: Describe session
219
221
[[file:examples/describe.png]]
220
222
** Adding support for languages
221
-
Here it is the minimal configuration that is needed for new language server registration. Refer to the documentation of ~lsp-client.el~ for the additional settings supported on registration time. ~lsp-language-id-configuration~ must be updated to contain the corresponding mode -> language id - in this case ~(python-mode . "python")~
Here it is the minimal configuration that is needed for new language server registration. Refer to the documentation of ~lsp-client.el~ for the additional settings supported on registration time. ~lsp-language-id-configuration~ must be updated to contain the corresponding mode -> language id - in this case ~(python-mode . "python")~
~lsp-mode~ provides tools to bridge emacs ~defcustom~ as a language configuration sections properties(see [[https://microsoft.github.io/language-server-protocol/specification#workspace_configuration][specification workspace/configuration]]). In addition you may use ~lsp-generate-settings~ from [[https://github.com/emacs-lsp/lsp-mode/blob/master/scripts/lsp-generate-settings.el][Generate Settings script]] to generate ~defcustom~ from ~package.json~ VScode plugin manifest. Example:
0 commit comments