coc settings.json

警告
本文最后更新于 2023-06-08,文中内容可能已过时。

coc.vim 配置,实现自动跳出补全功能。

  • 注释掉:suggest.noselect
  • 注释掉:suggest.autoTrigger
1
2
3
4
  // 不能设置
  // "suggest.noselect": false,
  // "suggest.autoTrigger": false,
  // "suggest.triggerAfterInsertEnter": true
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  // Enable preselect feature on neovim, default: `true`
  "suggest.enablePreselect": true,
  // Add preview option to `completeopt`, default: `false`
  "suggest.enablePreview": true,
  // completion automatically select the first completed
  // 不能设置
  // "suggest.noselect": false,
  // "suggest.autoTrigger": false,
  // "suggest.triggerAfterInsertEnter": true
  "diagnostic.checkCurrentLine": true,
  // min word for trigger preview
  "suggest.minTriggerInputLength": 1,
  // Target to show hover information, default is floating window when possible.
  "coc.preferences.hoverTarget": "preview",
  // Auto close preview window on cursor move.,  default: `true`
  "coc.preferences.previewAutoClose": true,

  // Coc.Prettier ---------------------------------------------------------------
  "prettier.singleQuote": true,
  "prettier.trailingComma": "all",
  "prettier.bracketSpacing": false,

  // Coc.Python -----------------------------------------------------------------
  "python.linting.pylintEnabled": false,
  "python.linting.enabled": true,
  "python.pythonPath": "/home/william/anaconda3/bin/python3",
  "pyright.inlayHints.variableTypes": false,
  "python.linting.flake8Enabled": true,
  "python.linting.flake8Args": [
      "--max-line-length=120",
      "--ignore=E203,E221,E251,E266,E302,E305,E402,W503,F401,F403,F405"
    ],
  // https://github.com/fannheyward/coc-pyright/blob/master/package.json
  "python.analysis.diagnosticSeverityOverrides": {
    "reportWildcardImportFromLibrary": "none",
    "reportOptionalMemberAccess": "none"
  }

  // coc.markdown
  "markdownlint.config": {
      "default": true,
      "line_length": false,
      "no-inline-html": { "allowed_elements": ["pre"] },
      "ul-indent": { "indent": 4 }
  },
  //coc.clangd
  "clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/16.0.2/clangd_16.0.2/bin/clangd"
}

相关内容

william 支付宝支付宝
william 微信微信
0%