-
Notifications
You must be signed in to change notification settings - Fork 0
/
coc-settings.json
160 lines (159 loc) · 5.04 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
// For unknown reasons this file will always be noexpandtab in nvim
{
"diagnostic.virtualTextCurrentLineOnly": false,
"diagnostic.messageTarget": "echo",
"diagnostic.virtualText": true,
"diagnostic.checkCurrentLine": true,
"diagnostic.enable": true,
"diagnostic.autoRefresh": true,
"diagnostic.locationlistUpdate": true,
"diagnostic.errorSign": "✖",
"diagnostic.warningSign": "⚑",
"diagnostic.infoSign": "⚑",
"diagnostic.hintSign": "⚑",
"languageserver": {
"coc-terraform-ls": {
"filetypes": ["terraform", "tf"],
"command": "terraform-ls",
"args": ["serve"],
"initializationOptions": {},
"settings": {},
"sources": ["https://github.com/hashicorp/terraform-ls"]
},
"coc-vscode-json-language-server": {
"filetypes": ["json", "jsonc"],
"command": "vscode-json-language-server",
"args": ["--stdio"],
"settings": {
"json": {
"schemas": [],
"format": {
"enable": false
},
"validate": {
"enable": true
}
}
},
"trace.server": "verbose",
"initializationOptions": {
"documentFormatting": false,
"documentRangeFormatting": false
},
"sources": ["npm i -g vscode-langservers-extracted"],
"rationale": "vscode-json-language-server for linting."
},
// coc chokes on diagnostics from this server, errors on workspace/didChangeWorkspaceFolders
// "coc-vscode-eslint-language-server": {
// "filetypes": ["javascript", "typescript"],
// //"command": "nc",
// //"args": ["localhost", "12345"],
// "command": "vscode-eslint-language-server",
// "args": ["--stdio"],
// "trace.server": "verbose",
// "initializationOptions": {},
// "sources": ["npm i -g vscode-langservers-extracted"],
// "rationale": "uses vscode eslint, but not working"
// },
// "coc-manual-vscode-eslint-language-server": {
// "filetypes": ["javascript", "typescript"],
// "command": "nc",
// "args": ["localhost", "12346"],
// // "command": "node",
// // "args": ["/home/base/vscode-eslint/server/out/eslintServer.js", "--stdio"],
// "trace.server": "verbose",
// "initializationOptions": {
// "workspaceFolder": "/home/base/Documents/bitbucket/aws-lambda-ts-sls-cloudformation",
// "workingDirectory": "/home/base/Documents/bitbucket/aws-lambda-ts-sls-cloudformation"
// },
// "sources": ["https://github.com/microsoft/vscode-eslint"],
// "rationale": "uses vscode eslint, manually extracted/installed"
// },
"coc-efm-langserver-elsint_d": {
"filetypes": ["javascript", "typescript"],
"command": "$HOME/go/bin/efm-langserver",
"args": [],
// "command": "nc",
// "args": ["localhost", "12345"],
"rootPatterns": [".git/"],
"trace.server": "verbose",
"initializationOptions": {
"documentFormatting": true,
"documentRangeFormatting": true,
"documentSymbol": true,
"codeAction": true,
"completion": true
},
"sources": [
"go install github.com/mattn/efm-langserver@latest",
"npm install -g eslint_d"
],
"rationale": "efm-langserver:eslint_d.js for linting+formatting.",
"alternatives": ["coc-eslint"]
},
//"coc-typescript-language-server": {
// "filetypes": ["typescript"],
// "command": "typescript-language-server",
// "args": ["--stdio"],
// "sources": ["npm install -g typescript-language-server"]
//},
//"coc-vtsls": {
// "filetypes": ["typescript"],
// "command": "vtsls",
// "args": ["--stdio"],
// "sources": ["npm install -g @vtsls/language-server"],
// "rationale": "LSP wrapper for typescript extension of vscode"
//},
"coc-efm-langserver-json-jsonc": {
"filetypes": ["json", "jsonc"],
"command": "$HOME/go/bin/efm-langserver",
"args": [],
// "command": "nc",
// "args": ["localhost", "12345"],
"rootPatterns": [".git/"],
"trace.server": "verbose",
"initializationOptions": {
"documentFormatting": true,
"documentRangeFormatting": true,
"documentSymbol": true,
"codeAction": true,
"completion": true
},
"rationale": "efm-langserver:prettierd for formatting.",
"sources": [
"go install github.com/mattn/efm-langserver@latest",
"npm install -g @fsouza/prettierd"
],
"alternatives": ["coc-json"]
}
},
"markdownlint.config": {
"default": true,
"line_length": false,
"no-bare-urls": false,
"fenced-code-language": false
},
"suggest.enablePreselect": false,
"yaml.customTags": [
"!Ref scalar",
"!Sub scalar",
"!GetAtt",
"!Base64",
"!FindInMap",
"!GetAZs",
"!ImportValue",
"!Join",
"!Select",
"!Split",
"!If",
"!Equals",
"!Equals mapping",
"!Not",
"!And",
"!Or",
"!Condition"
],
"yaml.format.enable": true,
"yaml.hover": true,
"yaml.completion": true
}