{
  // could be 'always' 'trigger' => for specified trigger characters only 'none'
  "coc.preferences.autoTrigger": "always",
  // only used when autoTrigger is always
  "coc.preferences.triggerAfterInsertEnter": false,
  // timeout for completion
  "coc.preferences.timeout": 500,
  // not make vim select first item on completion start
  "coc.preferences.noselect": true,


  // code lens, works with the virtual text feature of neovim, ie. inline evaluation
  "codeLens.enable": true,

  // javascript settings
  "javascript.suggestionActions.enabled": false,
  "typescript.suggestionActions.enabled": false,

  // executable path for https://facebook.github.io/watchman/, detected from $PATH by default
  // "coc.preferences.watchmanPath": "",
  // enable diagnostic
  "diagnostic.enable": true,
  "diagnostic.signOffset": 1000,
  "diagnostic.errorSign": ">>",
  "diagnostic.warningSign": "⚠",
  "diagnostic.infoSign": ">>",
  "diagnostic.hintSign": ">>",

  // NOTE: `coc-eslint`
  //

  "eslint.enable": true,

  // NOTE: the below setting fixes the following error
  // `[coc.nvim] Failed to load the ESLint library for the document`
  // specify path to eslint lib / bin, use global `node_modules` dir NOT global bin
  "eslint.nodePath": "~/.config/yarn/global/node_modules",
  "eslint.packageManager": "yarn",
  "eslint.filetypes": ["javascript", "typescript", "typescriptreact", "javascriptreact"],
  "eslint.run": "onType",
  "eslint.options": {"configfie": "~/.eslintrc.json"},
  "suggest.floatEnable": true
}

// vim: ft=jsonc
