emacs-lsp / lsp-metals

lsp-mode :heart: metals
https://emacs-lsp.github.io/lsp-metals
GNU General Public License v3.0
58 stars 33 forks source link

Missing configuration settings #112

Open cpitclaudel opened 2 weeks ago

cpitclaudel commented 2 weeks ago

HI,

As far as I can tell there is not lsp-metals equivalent of the following settings:

I tried adding a setting for the first one like this:

(lsp-register-custom-settings
 '(("metals.inlay-hints.type-parameters.enable" lsp-metals-inlay-hints.type-parameters.enable)))

(defcustom lsp-metals-inlay-hints.type-parameters.enable t
  "Display inlay hints."
  :type 'boolean
  :group 'lsp-metals)

(lsp-metals--create-bool-toggle "inlay-hints.type-parameters.enable" "inlay-hints.type-parameters.enable" lsp-metals-inlay-hints.type-parameters.enable)

and like this:

(lsp-register-custom-settings
 '(("metals.inlayHints.typeParameters.enable" lsp-metals-inlay-hints.type-parameters.enable)))

(defcustom lsp-metals-inlayHints.typeParameters.enable t
  "Display inlay hints."
  :type 'boolean
  :group 'lsp-metals)

(lsp-metals--create-bool-toggle "inlayHints.typeParameters.enable" "inlayHints.typeParameters.enable" lsp-metals-inlayHints.typeParameters.enable)

Both seemed to be sent to the server, but that did not lead to inlay hints appearing (I had lsp-inlay-hint-enable set to t and lsp-inlay-hints-mode turned on).