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

Missing configuration settings #112

Open
cpitclaudel opened this issue Nov 12, 2024 · 0 comments
Open

Missing configuration settings #112

cpitclaudel opened this issue Nov 12, 2024 · 0 comments

Comments

@cpitclaudel
Copy link

HI,

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

  • metals.inlayHints.typeParameters.enable
  • metals.inlayHints.hintsInPatternMatch.enable
  • autoImportBuild
  • defaultBspToBuildTool

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).

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