-
Notifications
You must be signed in to change notification settings - Fork 0
/
coc-settings.json
162 lines (162 loc) · 3.74 KB
/
coc-settings.json
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"coc.preferences.extensionUpdateCheck": "daily",
"coc.preferences.snippetStatusText": "Ⓢ ",
"coc.preferences.messageLevel": "error",
// 目标为显示悬停信息,默认情况下为浮动窗口
"coc.preferences.hoverTarget": "float",
"coc.preferences.enableFloatHighlight": true,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"html",
"css",
"json",
"python",
"vue"
],
//"coc.source.around.firstMatch": false,
//"coc.source.buffer.firstMatch": false,
//"coc.source.syntax.firstMatch": false,
// 在完成时不让Vim选择第一项
"suggest.noselect": true,
"suggest.enablePreselect": false,
"suggest.detailMaxLength": 100,
// 自动触发补全
"suggest.autoTrigger": "always",
"suggest.triggerAfterInsertEnter": true,
"suggest.timeout": 5000,
// 添加预览选项以完成选择,默认值:false。
"suggest.enablePreview": true,
"suggest.floatEnable": true,
"suggest.detailField": "preview",
"suggest.snippetIndicator": "",
"suggest.triggerCompletionWait": 100,
//"suggest.echodocSupport": true,
/*
"suggest.completionItemKindLabels": {
"class": "\uf0e8",
"color": "\ue22b",
"constant": "\uf8fe",
"default": "\uf29c",
"enum": "\uf435",
"enumMember": "\uf02b",
"event": "\ufacd",
"field": "\uf93d",
"file": "\uf723",
"folder": "\uf115",
"function": "\u0192",
"interface": "\uf417",
"keyword": "\uf1de",
"method": "\uf6a6",
"module": "\uf40d",
"operator": "\uf915",
"property": "\ue624",
"reference": "\ufa46",
"snippet": "\ue60b",
"struct": "\ufb44",
"text": "\ue612",
"typeParameter": "\uf728",
"unit": "\uf475",
"value": "\uf89f",
"variable": "\ue71b"
},
*/
//"diagnostic.signOffset": 1,
//"diagnostic.errorSign": "\uf467",
//"diagnostic.warningSign": "\uf071",
//"diagnostic.infoSign": "\uf129",
//"diagnostic.hintSign": "\uf864",
"diagnostic.errorSign": ">>",
//"diagnostic.errorSign": "❌",
"diagnostic.warningSign": "⚠",
"diagnostic.infoSign": ">>",
"diagnostic.hintSign": ">>",
// 禁用ale显示
"diagnostic.displayByAle": false,
// 关闭插入模式诊断
"diagnostic.refreshOnInsertMode": false,
// 仅在保存后刷新诊断信息,默认关闭
"diagnostic.refreshAfterSave": false,
"diagnostic.checkCurrentLine": true,
"diagnostic.virtualTextPrefix": " ❯❯❯ ",
"diagnostic.virtualText": true,
"codeLens.enable": true,
// 突出显示组用于突出显示预览窗口中的范围。
"list.previewHighlightGroup": "Statement",
"snippets.ultisnips.directories": [
"$HOME/.config/nvim/Ultisnips/",
"$HOME/.config/nvim/plugged/vim-snippets/UltiSnips/"
],
// For Lua
"diagnostic.level": "warning",
"languageserver": {
/*
"ccls": {
"command": "ccls",
"filetypes": [
"c",
"cc",
"cpp",
"cuda",
"objc",
"objcpp"
],
"rootPatterns": [
".ccls",
".ccls-root",
"compile_commands.json",
".git/",
".hg/"
],
"initializationOptions": {
"cache": {
"directory": ".ccls-cache"
}
//,
//"client": {
// "snippetSupport": true
//}
}
},
*/
"clangd": {
"command": "clangd",
"rootPatterns": [
"compile_flags.txt",
"compile_commands.json"
],
"filetypes": [
"c",
"cc",
"cpp",
"c++",
"objc",
"objcpp"
]
},
"golang": {
"command": "gopls",
// for debug
//"args": ["serve", "-debug", "0.0.0.0:8484", "-rpc.trace"],
// 用于从当前文件解析rootPath的根模式,默认为工作区根
"rootPatterns": [
"go.mod"
],
// 禁用此语言服务器的workspaceFolders功能。
"disableWorkspaceFolders": true,
"filetypes": [
"go"
]
},
"bash": {
"command": "bash-language-server",
"args": [
"start"
],
"filetypes": [
"sh"
],
"ignoredRootPaths": []
}
}
}