-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoc-settings.json
151 lines (139 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
{
// https://github.com/neoclide/coc.nvim/wiki/Completion-with-sources
// ruby
"solargraph.commandPath": "/Users/wang/Documents/github/ruby/solargraph/main.rb",
"solargraph.checkGemVersion": false,
// "solargraph.folding": true,
// "solargraph.hover": true,
"solargraph.diagnostics": true,
"solargraph.formatting": true,
// "solargraph.symbols": true,
// stdio可能吐一些意外的内容,导致解析失败,用socket进行隔离
// socket可能连接错误,又改回stdio了.. https://github.com/neoclide/coc-solargraph/issues/66
// "solargraph.transport": "socket",
// "solargraph.transport": "stdio",
//"solargraph.transport": "external", // local run and connect to debug
"solargraph.externalServer": {
"host": "127.0.0.1",
"port": 7658
},
"solargraph.logLevel": "debug",
//"solargraph.trace.server": "verbose",
// javascript
"javascript.format.enabled": false, // 和eslint冲突,没用,使用外部的eslint fix
"javascript.suggestionActions.enabled": false, // 老提示commonjs转换的action...
"typescript.suggestionActions.enabled": true,
"eslint.format.enable": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
// "tsserver.log": "normal",
// rust
// "rust-analyzer.serverPath": "~/Downloads/rust-analyzer-mac",
// python
"python.formatting.provider": "black",
"python.linting.pylintEnabled": true,
"python.linting.lintOnSave": true,
"python.pythonPath": "python3",
"go.goplsArgs": ["-remote=auto"],
"go.goplsPath": "/Users/wang/go/bin/gopls",
"[swift]": {
"inlayHint.enable": false
},
// swift
"languageserver": {
"sourcekit": {
// "command": "/Users/wang/Documents/github/Apple/sourcekit-lsp/.build/release/sourcekit-lsp",
// "command": "sourcekit-lsp",
"command": "xcrun",
"args": ["--toolchain", "swift", "sourcekit-lsp"
// ,"--generated-interfaces-path", ".build/SourceKit-GeneratedInterfaces"
],
"rootPatterns": ["buildServer.json", "Package.swift", "compile_flags.txt"],
// "trace.server": "verbose",
// "env": { "SOURCEKIT_LOGGING": "3" },
"filetypes": ["swift", "cpp", "c", "objective-c", "objective-cpp"]
}
// , "racket": {
// "command": "racket",
// "args": [
// "--lib",
// "racket-langserver"
// ],
// "filetypes": [
// "scheme",
// "racket"
// ]
// }
// , "crystal": {
// "command": "crystalline",
// "args": [ "--stdio" ],
// "filetypes": [ "crystal" ],
// "rootPatterns": ["shard.yml"]
// }
, "fennel-ls": {
"command": "/Users/wang/Documents/github/MAC/fennel-ls/fennel-ls",
"filetypes": ["fennel"],
"settings": {
"fennel-ls": {
"extra-globals": "vim luafile",
"fennel-path": "./?.fnl;./?/init.fnl;./fnl/?.fnl;./fnl/?/init.fnl",
"macro-path": "./?.fnl;./?/init-macros.fnl;./?/init.fnl;fnl/?.fnl;fnl/?/init-macros.fnl;fnl/?/init.fnl",
}
}
}
//," lua": {
// "command": "lua-language-server",
// "filetypes": ["lua"],
// "rootPatterns": [".git/"],
//}
// , "HY": {
// "command": "python3",
// "args": ["/Users/wang/Library/Python/3.9/bin/hyls"],
// "filetypes": ["hy"]
// }
// , "steep": {
// "command": "steep",
// "args": ["langserver"],
// "filetypes": ["ruby"]
// }
//, "rubylsp": {
// "command": "ruby-lsp",
// //"command": "/private/tmp/ruby-lsp/exe/ruby-lsp",
// "filetypes": ["ruby"]
//}
},
"coc.source.omni.filetypes": [],
// config
"workspace.bottomUpFiletypes": ["swift"],
"workspace.workspaceFolderCheckCwd": true,
// "workspace.progressTarget": "statusline",
// "suggest.autoTrigger": "trigger",
// "suggest.noselect": true,
"suggest.minTriggerInputLength": 2,
"suggest.maxCompleteItemCount": 9,
// "suggest.numberSelect": true,
"codeLens.enable": false, // has flicker in rust analyzer
"diagnostic.virtualText": true,
"diagnostic.separateRelatedInformationAsDiagnostics": true,
// "list.maxPreviewHeight": 20,
"tabnine.limit": 2,
// mapping
"list.insertMappings": {
"<C-g>": "do:exit",
"<A-v>": "eval:@*",
"<A-j>": "normal:j",
"<A-k>": "normal:k",
"<A-h>": "prompt:left",
"<A-l>": "prompt:right",
"<A-a>": "do:selectall"
},
"list.normalMappings": {
"<C-g>": "do:exit",
"<A-j>": "normal:j",
"<A-k>": "normal:k",
"<A-a>": "do:selectall"
},
"list.maxPreviewHeight": 30,
"list.floatPreview": true,
"snippets.autoTrigger": false,
"snippets.ultisnips.pythonPrompt": false
}