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.
Asked
Active
Viewed 1,221 times
2 Answers
2
You can use coc#config
https://github.com/neoclide/coc.nvim/blob/101175f47c15ff11eb599c617ef895f578f758b8/doc/coc.txt
or g:coc_user_config
.
https://github.com/neoclide/coc.nvim/blob/101175f47c15ff11eb599c617ef895f578f758b8/doc/coc.txt#L890

yutkat
- 41
- 1
- 4
-
Answers with links benefit from explanations – D. Ben Knoble May 09 '20 at 12:29
0
You can change the configurations by coc#config
, for example:
call coc#config('signature', {'preferShownAbove': v:false})

fannheyward
- 18,599
- 12
- 71
- 109