johsa
johsa

Reputation: 21

Coc: Change setting from key or script

Is there a way to change a Coc settings from script? Extension options are normally stored in the coc-settings.json file. If you want to toggle a specific setting it is slow to open the file, edit and save. Preferable I would like to be able to map a key to an extension setting.

Upvotes: 0

Views: 1563

Answers (2)

fannheyward
fannheyward

Reputation: 19277

You can change the configurations by coc#config, for example:

call coc#config('signature', {'preferShownAbove': v:false})

Upvotes: 1

Related Questions