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

[NOTICE] rename of builtin configurations. #462

Closed
chemzqm opened this issue Feb 20, 2019 · 3 comments
Closed

[NOTICE] rename of builtin configurations. #462

chemzqm opened this issue Feb 20, 2019 · 3 comments

Comments

@chemzqm
Copy link
Member

chemzqm commented Feb 20, 2019

Some configurations are renamed, the old configurations will still work until v0.1 release, so it won't break.

All completion related configuration will be start with suggest instead of coc.preferences:

  • coc.preferences.autoTrigger => suggest.autoTrigger
  • coc.preferences.languageSourcePriority => suggest.languageSourcePriority
  • coc.preferences.numberSelect => suggest.numberSelect
  • coc.preferences.snippetIndicator => suggest.snippetIndicator
  • coc.preferences.maxCompleteItemCount => suggest.maxCompleteItemCount
  • coc.preferences.preferCompleteThanJumpPlaceholder => suggest.preferCompleteThanJumpPlaceholder
  • coc.preferences.invalidInsertCharacters => suggest.invalidInsertCharacters
  • coc.preferences.fixInsertedWord => suggest.fixInsertedWord
  • coc.preferences.localityBonus => suggest.localityBonus
  • coc.preferences.triggerAfterInsertEnter => suggest.triggerAfterInsertEnter
  • coc.preferences.timeout => suggest.timeout
  • coc.preferences.minTriggerInputLength => suggest.minTriggerInputLength
  • coc.preferences.triggerCompletionWait => suggest.triggerCompletionWait
  • coc.preferences.echodocSupport => suggest.echodocSupport
  • coc.preferences.acceptSuggestionOnCommitCharacter => suggest.acceptSuggestionOnCommitCharacter
  • coc.preferences.noselect => suggest.noselect
  • coc.preferences.keepCompleteopt => suggest.keepCompleteopt
  • coc.preferences.detailMaxLength => suggest.detailMaxLength

All diagnostic related configurations would be starts with diagnostic instead of coc.preferences.diagnostic:

  • diagnostic.level
  • diagnostic.refreshOnInsertMode
  • diagnostic.enable
  • diagnostic.displayByAle
  • diagnostic.virtualText
  • diagnostic.virtualTextPrefix
  • diagnostic.virtualTextLines
  • diagnostic.virtualTextLineSeparator
  • diagnostic.enableMessage
  • diagnostic.locationlist
  • diagnostic.highlightOffset
  • diagnostic.signOffset
  • diagnostic.errorSign
  • diagnostic.warningSign
  • diagnostic.infoSign
  • diagnostic.hintSign

codeLens related configuration would be starts with codeLens instead of coc.preferences.codeLens:

  • codeLens.enable
  • codeLens.separator

If you're using coc-json, it would show warnings for invalid configuration keys after open configuration file by :CocConfig.

@chemzqm chemzqm pinned this issue Feb 20, 2019
@kutsan
Copy link

kutsan commented Feb 22, 2019

Why prefer suggest instead of just completion, eg. completion.autoTrigger? It's better IMO.

@chemzqm
Copy link
Member Author

chemzqm commented Feb 22, 2019

Because it's used by VSCode

@kutsan
Copy link

kutsan commented Feb 22, 2019

Ah! Thanks for the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants