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"
}
|