Skip to content

Toggling settings like showImplicitArguments #574

Answered by ckipp01
TimWSpence asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @TimWSpence, yup, we have a toggle_setting function in the Lua API that you can use for this. You can see some notes about it here:

nvim-metals/doc/metals.txt

Lines 1027 to 1040 in 1b90531

*toggle_setting()*
toggle_setting({setting})
Use to toggle a boolean setting in |metals-settings|.
If the setting is not set, you'll be toggling it on.
Parameters:
{setting} (string) the name of the setting that
you'd like to toggle.
Example usage: >
lua require("metals").toggle_setting("showImplicitArguments")
<

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TimWSpence
Comment options

@ckipp01
Comment options

@TimWSpence
Comment options

Answer selected by TimWSpence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants