-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcoc-settings.json
44 lines (36 loc) · 1.5 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
{
// "tsserver.log": "verbose",
// "tsserver.trace.server": "verbose",
// coc diagnostic has two display methods:
// - floating window: shown like completions
// - virtual text: shown to the right of the line
// show flaoting window diagnostic no matter the cursor column on the line
"diagnostic.checkCurrentLine": true,
// enable virtual text in addition to the floating window
// a CodeLens dependency
"diagnostic.virtualText": true,
// Make virtual text messages "sticky". When virtual text is enabled, the
// virtual text message can be a duplicate message of the floating window and
// this mitigates the distraction of a text pop-up of no additional value.
"diagnostic.virtualTextCurrentLineOnly": false,
// match codeLens.separator and differ more from code
"diagnostic.virtualTextPrefix": "‣ ",
// enable CodeLens
"codeLens.enable": true,
"codeLens.position": "right_align",
"javascript.referencesCodeLens.enable": true,
"typescript.referencesCodeLens.enable": true,
"typescript.referencesCodeLens.showOnAllFunctions": true,
"typescript.implementationsCodeLens.enable": true,
// enable format on save for some file types
"coc.preferences.formatOnSaveFiletypes": ["prisma"],
// languageservers defined here are instead of coc- extension
"languageserver": {
// https://github.com/neoclide/coc.nvim/wiki/Language-servers#dockerfile
"dockerfile": {
"command": "docker-langserver",
"filetypes": ["dockerfile"],
"args": ["--stdio"]
}
}
}