This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
coc-settings.json
90 lines (90 loc) · 2.07 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
{
"diagnostic.refreshOnInsertMode": true,
"diagnostic.checkCurrentLine": true,
"diagnostic.warningSign": "--",
"diagnostic.virtualText": true,
"diagnostic.virtualTextPrefix": " ■ ",
"diagnostic.virtualTextCurrentLineOnly": false,
"coc.preferences.formatOnSaveFiletypes": [
"elm",
"typescript",
"javascript",
"json",
"jsonc"
],
"languageserver": {
"go": {
"command": "gopls",
"rootPatterns": [
"go.mod"
],
"trace.server": "verbose",
"filetypes": [
"go"
],
},
"haskell": {
"command": "haskell-language-server-wrapper",
"args": [
"--lsp"
],
"rootPatterns": [
"*.cabal",
"stack.yaml",
"cabal.project",
"package.yaml",
"hie.yaml"
],
"filetypes": [
"haskell",
"lhaskell"
]
},
"elmLS": {
"command": "elm-language-server",
"filetypes": [
"elm"
],
"rootPatterns": [
"elm.json"
],
"initializationOptions": {
"elmAnalyseTrigger": "change"
}
},
"nix": {
"command": "rnix-lsp",
"filetypes": [
"nix"
]
}
},
// coc-diagnostics for shellcheck, shfmt and so on.
//
// Install with :CocInstall coc-diagnostic
"diagnostic-languageserver.filetypes": {
"sh": "shellcheck" // lint `sh` (and `bash`) files
},
"diagnostic-languageserver.formatFiletypes": {
"sh": "shfmt", // format `sh` (and `bash`) files
"nix": "alejandra"
},
"diagnostic-languageserver.formatters": {
// define our formatter so that we can reference it from
// `diagnostic-languageserver.formatFiletypes`
"shfmt": {
"command": "shfmt",
// all the below args are entirely optional
// primarily listed here to call out that flags which take an
// argument (such as `-i <num-spaces>` for specifying indentation)
// should be split into two strings, the flag and then the value
"args": [
"-i",
"2",
"-bn",
"-ci",
"-sr"
]
}
}
}