schema.json 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "description": "Configuration file for coc.nvim",
  4. "additionalProperties": false,
  5. "definitions": {
  6. "float": {
  7. "type": "object",
  8. "properties": {
  9. "border": {
  10. "type": "boolean",
  11. "default": false,
  12. "description": "Set to true to use borders."
  13. },
  14. "rounded": {
  15. "type": "boolean",
  16. "default": false,
  17. "description": "Use rounded borders when border is true."
  18. },
  19. "highlight": {
  20. "type": "string",
  21. "default": "CocFloating",
  22. "description": "Background highlight group of float window."
  23. },
  24. "title": {
  25. "type": "string",
  26. "default": "",
  27. "description": "Title used by float window."
  28. },
  29. "borderhighlight": {
  30. "type": "string",
  31. "default": "CocFloating",
  32. "description": "Border highlight group of float window."
  33. },
  34. "close": {
  35. "type": "boolean",
  36. "default": false,
  37. "description": "Set to true to draw close icon"
  38. },
  39. "maxWidth": {
  40. "type": "integer",
  41. "description": "Maximum width of float window, include border."
  42. },
  43. "maxHeight": {
  44. "type": "integer",
  45. "minimum": 2,
  46. "description": "Maximum height of float window, include border."
  47. },
  48. "focusable": {
  49. "type": "boolean",
  50. "default": true,
  51. "description": "Enable focus by user actions (wincmds, mouse events), neovim only."
  52. },
  53. "shadow": {
  54. "type": "boolean",
  55. "default": false,
  56. "description": "Drop shadow effect by blending with the background, neovim only."
  57. },
  58. "winblend": {
  59. "type": "integer",
  60. "default": 0,
  61. "minimum": 0,
  62. "maximum": 100,
  63. "description": "Enables pseudo-transparency by set 'winblend' option of window, neovim only."
  64. }
  65. }
  66. },
  67. "languageServerBase": {
  68. "type": "object",
  69. "properties": {
  70. "enable": {
  71. "type": "boolean",
  72. "default": true
  73. },
  74. "cwd": {
  75. "type": "string",
  76. "default": "",
  77. "description": "Working directory of languageserver, absolute path or relative to workspace folder, use workspace root by default"
  78. },
  79. "disableDynamicRegister": {
  80. "type": "boolean",
  81. "default": false,
  82. "description": "Disable dynamic registerCapability feature for this languageserver to avoid duplicated feature regstration."
  83. },
  84. "disableSnippetCompletion": {
  85. "type": "boolean",
  86. "default": false,
  87. "description": "Disable completion snippet feature for this languageserver, the languageserver may not respect it."
  88. },
  89. "disabledFeatures": {
  90. "type": "array",
  91. "default": [],
  92. "description": "Disabled features for this languageserver.",
  93. "items": {
  94. "type": "string",
  95. "enum": [
  96. "completion",
  97. "configuration",
  98. "workspaceFolders",
  99. "diagnostics",
  100. "willSave",
  101. "willSaveUntil",
  102. "didSaveTextDocument",
  103. "fileSystemWatcher",
  104. "hover",
  105. "signatureHelp",
  106. "definition",
  107. "references",
  108. "documentHighlight",
  109. "documentSymbol",
  110. "workspaceSymbol",
  111. "codeAction",
  112. "codeLens",
  113. "formatting",
  114. "documentFormatting",
  115. "documentRangeFormatting",
  116. "documentOnTypeFormatting",
  117. "rename",
  118. "documentLink",
  119. "executeCommand",
  120. "pullConfiguration",
  121. "typeDefinition",
  122. "implementation",
  123. "declaration",
  124. "color",
  125. "foldingRange",
  126. "selectionRange",
  127. "progress",
  128. "callHierarchy",
  129. "linkedEditing",
  130. "fileEvents",
  131. "semanticTokens"
  132. ]
  133. }
  134. },
  135. "formatterPriority": {
  136. "type": "number",
  137. "default": 0,
  138. "description": "Priority of this languageserver's formatter."
  139. },
  140. "env": {
  141. "type": "object",
  142. "default": null,
  143. "description": "Environment variables for child process."
  144. },
  145. "stdioEncoding": {
  146. "type": "string",
  147. "default": "utf8",
  148. "description": "Encoding used for stdio of child process."
  149. },
  150. "rootPatterns": {
  151. "type": "array",
  152. "default": [],
  153. "description": "Root patterns used to resolve rootPath from current file, default to workspace root",
  154. "items": {
  155. "type": "string"
  156. }
  157. },
  158. "requireRootPattern": {
  159. "type": "boolean",
  160. "default": false,
  161. "description": "If true, doesn't start server when root pattern not found."
  162. },
  163. "ignoredRootPaths": {
  164. "type": "array",
  165. "default": [],
  166. "description": "Absolute root paths that language server should not use as rootPath, higher priority than rootPatterns.",
  167. "items": {
  168. "type": "string"
  169. }
  170. },
  171. "filetypes": {
  172. "type": "array",
  173. "default": [],
  174. "description": "Supported filetypes, add * in array for all filetypes.",
  175. "items": {
  176. "type": "string"
  177. }
  178. },
  179. "additionalSchemes": {
  180. "type": "array",
  181. "default": [],
  182. "description": "Additional uri schemes, default schemes including file & untitled.",
  183. "items": {
  184. "type": "string"
  185. }
  186. },
  187. "revealOutputChannelOn": {
  188. "type": "string",
  189. "default": "never",
  190. "description": "Configure message level to show the output channel buffer",
  191. "enum": ["info", "warn", "error", "never"]
  192. },
  193. "progressOnInitialization": {
  194. "type": "boolean",
  195. "default": false,
  196. "description": "Enable progress report on languageserver initialize."
  197. },
  198. "initializationOptions": {
  199. "type": "object",
  200. "default": {},
  201. "description": "initializationOptions passed to languageserver"
  202. },
  203. "settings": {
  204. "type": "object",
  205. "default": {},
  206. "description": "Settings of languageserver"
  207. },
  208. "trace.server": {
  209. "type": "string",
  210. "default": "off",
  211. "enum": ["off", "messages", "verbose"],
  212. "description": "Trace level of communication between server and client"
  213. }
  214. }
  215. },
  216. "languageServerSocket": {
  217. "type": "object",
  218. "allOf": [{ "$ref": "#/definitions/languageServerBase" }],
  219. "required": ["port", "filetypes"],
  220. "additionalProperties": false,
  221. "properties": {
  222. "port": {
  223. "type": "integer",
  224. "description": "Port number of socket server"
  225. },
  226. "host": {
  227. "type": "string",
  228. "default": "127.0.0.1",
  229. "description": "Host of server"
  230. },
  231. "disableSnippetCompletion": {},
  232. "disableDynamicRegister": {},
  233. "disabledFeatures": {},
  234. "formatterPriority": {},
  235. "enable": {},
  236. "rootPatterns": {},
  237. "requireRootPattern": {},
  238. "ignoredRootPaths": {},
  239. "filetypes": {},
  240. "additionalSchemes": {},
  241. "revealOutputChannelOn": {},
  242. "progressOnInitialization": {},
  243. "initializationOptions": {},
  244. "settings": {},
  245. "stdioEncoding": {},
  246. "trace.server": {}
  247. }
  248. },
  249. "languageServerModule": {
  250. "type": "object",
  251. "allOf": [{ "$ref": "#/definitions/languageServerBase" }],
  252. "required": ["module", "filetypes"],
  253. "additionalProperties": false,
  254. "properties": {
  255. "module": {
  256. "type": "string",
  257. "default": "",
  258. "description": "Absolute path of javascript file, should works in IPC mode"
  259. },
  260. "args": {
  261. "type": "array",
  262. "default": [],
  263. "description": "Extra arguments of module",
  264. "items": {
  265. "type": "string"
  266. }
  267. },
  268. "runtime": {
  269. "type": "string",
  270. "default": "",
  271. "description": "Absolute path of node runtime."
  272. },
  273. "execArgv": {
  274. "type": "array",
  275. "default": [],
  276. "description": "Argv passed to node when using module, normally used for debugging, ex: [\"--nolazy\", \"--inspect-brk=6045\"]",
  277. "items": {
  278. "type": "string"
  279. }
  280. },
  281. "transport": {
  282. "type": "string",
  283. "default": "ipc",
  284. "description": "Transport kind used by server, could be 'ipc', 'stdio', 'socket' and 'pipe'",
  285. "enum": ["ipc", "stdio", "socket", "pipe"]
  286. },
  287. "transportPort": {
  288. "type": "integer",
  289. "description": "Port number used when transport is 'socket'"
  290. },
  291. "cwd": {},
  292. "env": {},
  293. "enable": {},
  294. "disableDynamicRegister": {},
  295. "disableSnippetCompletion": {},
  296. "disabledFeatures": {},
  297. "formatterPriority": {},
  298. "rootPatterns": {},
  299. "requireRootPattern": {},
  300. "ignoredRootPaths": {},
  301. "filetypes": {},
  302. "additionalSchemes": {},
  303. "revealOutputChannelOn": {},
  304. "progressOnInitialization": {},
  305. "initializationOptions": {},
  306. "stdioEncoding": {},
  307. "settings": {},
  308. "trace.server": {}
  309. }
  310. },
  311. "languageServerCommand": {
  312. "type": "object",
  313. "required": ["command", "filetypes"],
  314. "allOf": [{ "$ref": "#/definitions/languageServerBase" }],
  315. "additionalProperties": false,
  316. "properties": {
  317. "command": {
  318. "type": "string",
  319. "default": "",
  320. "description": "Executable in $PATH to start languageserver, should not used with module"
  321. },
  322. "args": {
  323. "type": "array",
  324. "default": [],
  325. "description": "Arguments of command",
  326. "items": {
  327. "type": "string"
  328. }
  329. },
  330. "detached": {
  331. "type": "boolean",
  332. "default": false,
  333. "description": "Detach the languageserver process"
  334. },
  335. "shell": {
  336. "type": "boolean",
  337. "default": false,
  338. "description": "Use shell for process"
  339. },
  340. "cwd": {},
  341. "env": {},
  342. "enable": {},
  343. "disableDynamicRegister": {},
  344. "disableSnippetCompletion": {},
  345. "disabledFeatures": {},
  346. "formatterPriority": {},
  347. "rootPatterns": {},
  348. "requireRootPattern": {},
  349. "ignoredRootPaths": {},
  350. "filetypes": {},
  351. "additionalSchemes": {},
  352. "revealOutputChannelOn": {},
  353. "progressOnInitialization": {},
  354. "initializationOptions": {},
  355. "stdioEncoding": {},
  356. "settings": {},
  357. "trace.server": {}
  358. }
  359. }
  360. },
  361. "properties": {
  362. "http.proxy": {
  363. "type": "string",
  364. "default": "",
  365. "pattern": "^https?://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$",
  366. "description": "The proxy setting to use. If not set, will be inherited from the `http_proxy` and `https_proxy` environment variables."
  367. },
  368. "http.proxyStrictSSL": {
  369. "type": "boolean",
  370. "description": "Controls whether the proxy server certificate should be verified against the list of supplied CAs",
  371. "default": true
  372. },
  373. "http.proxyAuthorization": {
  374. "type": ["null", "string"],
  375. "description": "The value to send as the `Proxy-Authorization` header for every network request.",
  376. "default": null
  377. },
  378. "http.proxyCA": {
  379. "type": "string",
  380. "description": "CA (file) to use as Certificate Authority",
  381. "default": null
  382. },
  383. "npm.binPath": {
  384. "type": "string",
  385. "default": "npm",
  386. "description": "Command or absolute path to npm or yarn."
  387. },
  388. "suggest.noselect": {
  389. "type": "boolean",
  390. "description": "Not make vim select first item on completion start",
  391. "default": false
  392. },
  393. "suggest.formatItems": {
  394. "type": "array",
  395. "items": {
  396. "enum": ["abbr", "menu", "kind", "shortcut"]
  397. },
  398. "contains": {
  399. "enum": ["abbr"]
  400. },
  401. "uniqueItems": true,
  402. "description": "Items shown in popup menu in order.",
  403. "default": ["abbr", "menu", "kind", "shortcut"]
  404. },
  405. "suggest.selection": {
  406. "type": "string",
  407. "default": "recentlyUsed",
  408. "description": "Controls how suggestions are pre-selected when showing the suggest list.",
  409. "enum": ["none", "recentlyUsed", "recentlyUsedByPrefix"]
  410. },
  411. "suggest.enablePreselect": {
  412. "type": "boolean",
  413. "description": "Enable preselect feature of LSP, works when suggest.noselect is false.",
  414. "default": true
  415. },
  416. "suggest.floatConfig": {
  417. "type": "object",
  418. "description": "Configure style of popup menu and documentation window of completion.",
  419. "allOf": [{ "$ref": "#/definitions/float" }],
  420. "additionalProperties": false,
  421. "properties": {
  422. "border": {},
  423. "rounded": {},
  424. "highlight": {},
  425. "borderhighlight": {},
  426. "maxWidth": {},
  427. "winblend": {},
  428. "shadow": {}
  429. }
  430. },
  431. "suggest.labelMaxLength": {
  432. "type": "number",
  433. "description": "Max length of abbr that shown as label of complete item.",
  434. "default": 200
  435. },
  436. "suggest.detailMaxLength": {
  437. "type": "number",
  438. "description": "Max length of detail that should be shown in popup menu.",
  439. "default": 100
  440. },
  441. "suggest.detailField": {
  442. "type": "string",
  443. "default": "preview",
  444. "description": "Where to show the detail text of CompleteItem from LS.",
  445. "enum": ["abbr", "preview"]
  446. },
  447. "suggest.autoTrigger": {
  448. "type": "string",
  449. "default": "always",
  450. "description": "How should completion be triggered",
  451. "enum": ["always", "trigger", "none"]
  452. },
  453. "suggest.languageSourcePriority": {
  454. "type": "number",
  455. "default": 99,
  456. "description": "Priority of language sources."
  457. },
  458. "suggest.snippetIndicator": {
  459. "type": "string",
  460. "default": "~",
  461. "description": "The character used in abbr of complete item to indicate the item could be expand as snippet."
  462. },
  463. "suggest.maxCompleteItemCount": {
  464. "type": "number",
  465. "default": 50,
  466. "description": "Maximum number of complete items shown in vim"
  467. },
  468. "suggest.preferCompleteThanJumpPlaceholder": {
  469. "type": "boolean",
  470. "description": "Confirm completion instead of jump to next placeholder when completion is activated.",
  471. "default": false
  472. },
  473. "suggest.fixInsertedWord": {
  474. "type": "boolean",
  475. "description": "Make inserted word replace word characters after cursor position.",
  476. "default": true
  477. },
  478. "suggest.localityBonus": {
  479. "type": "boolean",
  480. "description": "Boost suggestions that appear closer to the cursor position.",
  481. "default": true
  482. },
  483. "suggest.triggerAfterInsertEnter": {
  484. "type": "boolean",
  485. "description": "Trigger completion after InsertEnter, auto trigger should be 'always' to enable this option",
  486. "default": false
  487. },
  488. "suggest.minTriggerInputLength": {
  489. "type": "integer",
  490. "default": 1,
  491. "description": "Minimal input length for trigger completion, default 1"
  492. },
  493. "suggest.triggerCompletionWait": {
  494. "type": "integer",
  495. "default": 0,
  496. "minimum": 0,
  497. "maximum": 50,
  498. "description": "Wait time between text change and completion start, cancel completion when text changed during wait."
  499. },
  500. "suggest.timeout": {
  501. "type": "integer",
  502. "default": 5000,
  503. "minimum": 500,
  504. "maximum": 15000,
  505. "description": "Timeout for completion, in milliseconds."
  506. },
  507. "suggest.acceptSuggestionOnCommitCharacter": {
  508. "type": "boolean",
  509. "default": false,
  510. "description": "Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character. Requires CompleteChanged event to work."
  511. },
  512. "suggest.lowPrioritySourceLimit": {
  513. "type": "integer",
  514. "minimum": 1,
  515. "maximum": 100,
  516. "description": "Max items count for source priority lower than 90."
  517. },
  518. "suggest.highPrioritySourceLimit": {
  519. "type": "integer",
  520. "minimum": 1,
  521. "maximum": 100,
  522. "description": "Max items count for source priority bigger than or equal to 90."
  523. },
  524. "suggest.removeDuplicateItems": {
  525. "type": "boolean",
  526. "description": "Remove completion items with duplicated word for all sources, snippet items are excluded.",
  527. "default": false
  528. },
  529. "suggest.defaultSortMethod": {
  530. "type": "string",
  531. "description": "Default sorting behavior for suggested completion items.",
  532. "default": "length",
  533. "enum": ["length", "alphabetical", "none"]
  534. },
  535. "suggest.snippetsSupport": {
  536. "type": "boolean",
  537. "description": "Set to false to disable snippets support of completion.",
  538. "default": true
  539. },
  540. "suggest.completionItemKindLabels": {
  541. "type": "object",
  542. "default": {},
  543. "description": "Set custom labels to completion items' kinds.",
  544. "properties": {
  545. "text": { "type": "string", "maxLength": 1 },
  546. "method": { "type": "string", "maxLength": 1 },
  547. "function": { "type": "string", "maxLength": 1 },
  548. "constructor": { "type": "string", "maxLength": 1 },
  549. "field": { "type": "string", "maxLength": 1 },
  550. "variable": { "type": "string", "maxLength": 1 },
  551. "class": { "type": "string", "maxLength": 1 },
  552. "interface": { "type": "string", "maxLength": 1 },
  553. "module": { "type": "string", "maxLength": 1 },
  554. "property": { "type": "string", "maxLength": 1 },
  555. "unit": { "type": "string", "maxLength": 1 },
  556. "value": { "type": "string", "maxLength": 1 },
  557. "enum": { "type": "string", "maxLength": 1 },
  558. "keyword": { "type": "string", "maxLength": 1 },
  559. "snippet": { "type": "string", "maxLength": 1 },
  560. "color": { "type": "string", "maxLength": 1 },
  561. "file": { "type": "string", "maxLength": 1 },
  562. "reference": { "type": "string", "maxLength": 1 },
  563. "folder": { "type": "string", "maxLength": 1 },
  564. "enumMember": { "type": "string", "maxLength": 1 },
  565. "constant": { "type": "string", "maxLength": 1 },
  566. "struct": { "type": "string", "maxLength": 1 },
  567. "event": { "type": "string", "maxLength": 1 },
  568. "operator": { "type": "string", "maxLength": 1 },
  569. "typeParameter": { "type": "string", "maxLength": 1 },
  570. "default": { "type": "string", "maxLength": 1 }
  571. },
  572. "additionalProperties": false
  573. },
  574. "suggest.invalidInsertCharacters": {
  575. "type": "array",
  576. "items": {
  577. "type": "string"
  578. },
  579. "description": "Invalid character for strip valid word when inserting text of complete item.",
  580. "default": [" ", "(", "<", "{", "[", "\r", "\n"]
  581. },
  582. "suggest.asciiCharactersOnly": {
  583. "type": "boolean",
  584. "description": "Trigger suggest with ASCII characters only",
  585. "default": false
  586. },
  587. "suggest.ignoreRegexps": {
  588. "type": "array",
  589. "items": {
  590. "type": "string"
  591. },
  592. "description": "Regexps to ignore when trigger suggest",
  593. "default": []
  594. },
  595. "suggest.virtualText": {
  596. "type": "boolean",
  597. "description": "Show virtual text for insert word of selected item, works on neovim >= 0.5.0",
  598. "default": false
  599. },
  600. "documentHighlight.priority": {
  601. "type": "number",
  602. "default": -1,
  603. "description": "Match priority used by document highlight, see ':h matchadd'"
  604. },
  605. "documentHighlight.timeout": {
  606. "type": "integer",
  607. "default": 300,
  608. "minimum": 200,
  609. "maximum": 5000,
  610. "description": "Timeout for document highlight, in milliseconds."
  611. },
  612. "colors.filetypes": {
  613. "type": "array",
  614. "default": [],
  615. "description": "Filetypes that should be enabled for colors highlight feature, use \"*\" for all filetypes.",
  616. "items": {
  617. "type": "string"
  618. }
  619. },
  620. "colors.highlightPriority": {
  621. "type": "number",
  622. "description": "Priority for colors highlights, works on vim8 and neovim >= 0.6.0",
  623. "default": 1000,
  624. "maximum": 4096
  625. },
  626. "links.tooltip": {
  627. "type": "boolean",
  628. "description": "Show tooltip of link under cursor on CursorHold, neovim only",
  629. "default": false
  630. },
  631. "diagnostic.enable": {
  632. "type": "boolean",
  633. "description": "Set to false to disable diagnostic display",
  634. "default": true
  635. },
  636. "diagnostic.highlighLimit": {
  637. "type": "number",
  638. "description": "Limit count for highlighted diagnostics, too many diagnostic highlights could make vim stop responding",
  639. "default": 1000
  640. },
  641. "diagnostic.highlightPriority": {
  642. "type": "number",
  643. "description": "Priority for diagnostic highlights, works on vim8 and neovim >= 0.6.0",
  644. "default": 4096,
  645. "maximum": 4096,
  646. "minimum": 110
  647. },
  648. "diagnostic.autoRefresh": {
  649. "type": "boolean",
  650. "description": "Enable automatically refresh diagnostics, use diagnosticRefresh action when it's disabled.",
  651. "default": true
  652. },
  653. "diagnostic.level": {
  654. "type": "string",
  655. "description": "Used for filter diagnostics by diagnostic severity.",
  656. "default": "hint",
  657. "enum": ["hint", "information", "warning", "error"]
  658. },
  659. "diagnostic.locationlistLevel": {
  660. "type": ["string", "null"],
  661. "description": "Filter diagnostics in locationlist.",
  662. "default": null,
  663. "enum": ["hint", "information", "warning", "error"]
  664. },
  665. "diagnostic.signLevel": {
  666. "type": ["string", "null"],
  667. "description": "Filter diagnostics displayed in signcolumn.",
  668. "default": null,
  669. "enum": ["hint", "information", "warning", "error"]
  670. },
  671. "diagnostic.messageLevel": {
  672. "type": ["string", "null"],
  673. "description": "Filter diagnostic message in float window/popup.",
  674. "default": null,
  675. "enum": ["hint", "information", "warning", "error"]
  676. },
  677. "diagnostic.locationlistUpdate": {
  678. "type": "boolean",
  679. "description": "Update locationlist on diagnostics change, only works with locationlist opened by :CocDiagnostics command and first window of associated buffer.",
  680. "default": true
  681. },
  682. "diagnostic.checkCurrentLine": {
  683. "type": "boolean",
  684. "description": "When enabled, show all diagnostics of current line if there are none at the current position.",
  685. "default": false
  686. },
  687. "diagnostic.messageTarget": {
  688. "type": "string",
  689. "description": "Diagnostic message target.",
  690. "default": "float",
  691. "enum": ["echo", "float"]
  692. },
  693. "diagnostic.messageDelay": {
  694. "type": "number",
  695. "description": "How long to wait (in milliseconds) before displaying the diagnostic message with echo or float",
  696. "default": 200
  697. },
  698. "diagnostic.refreshOnInsertMode": {
  699. "type": "boolean",
  700. "description": "Enable diagnostic refresh on insert mode, default false.",
  701. "default": false
  702. },
  703. "diagnostic.displayByAle": {
  704. "type": "boolean",
  705. "description": "Use Ale for display diagnostics in vim, will disable coc for display diagnostics, restart required on change.",
  706. "default": false
  707. },
  708. "diagnostic.virtualText": {
  709. "type": "boolean",
  710. "description": "Use NeoVim virtual text to display diagnostics",
  711. "default": false
  712. },
  713. "diagnostic.virtualTextLevel": {
  714. "type": ["string", "null"],
  715. "description": "Filter diagnostic message in virtual text by level",
  716. "default": null,
  717. "enum": ["hint", "information", "warning", "error"]
  718. },
  719. "diagnostic.virtualTextWinCol": {
  720. "type": ["number", "null"],
  721. "description": "Window column number to align virtual text",
  722. "default": null
  723. },
  724. "diagnostic.virtualTextCurrentLineOnly": {
  725. "type": "boolean",
  726. "description": "Only show virtualText diagnostic on current cursor line",
  727. "default": true
  728. },
  729. "diagnostic.virtualTextPrefix": {
  730. "type": "string",
  731. "description": "The prefix added virtual text diagnostics",
  732. "default": " "
  733. },
  734. "diagnostic.virtualTextLines": {
  735. "type": "number",
  736. "description": "The number of non empty lines from a diagnostic to display",
  737. "default": 3
  738. },
  739. "diagnostic.virtualTextLineSeparator": {
  740. "type": "string",
  741. "description": "The text that will mark a line end from the diagnostic message",
  742. "default": " \\ "
  743. },
  744. "diagnostic.enableSign": {
  745. "type": "boolean",
  746. "default": true,
  747. "description": "Enable signs for diagnostics."
  748. },
  749. "diagnostic.enableHighlightLineNumber": {
  750. "type": "boolean",
  751. "default": true,
  752. "description": "Enable highlighting line numbers for diagnostics, only works with neovim and diagnostic.enableSign is true."
  753. },
  754. "diagnostic.enableMessage": {
  755. "type": "string",
  756. "default": "always",
  757. "description": "When to enable show messages of diagnostics.",
  758. "enum": ["always", "jump", "never"]
  759. },
  760. "diagnostic.signPriority": {
  761. "type": "number",
  762. "description": "Priority of diagnostic signs, default to 10",
  763. "default": 10
  764. },
  765. "diagnostic.errorSign": {
  766. "type": "string",
  767. "description": "Text of error sign",
  768. "default": ">>"
  769. },
  770. "diagnostic.warningSign": {
  771. "type": "string",
  772. "description": "Text of warning sign",
  773. "default": "⚠"
  774. },
  775. "diagnostic.infoSign": {
  776. "type": "string",
  777. "description": "Text of info sign",
  778. "default": ">>"
  779. },
  780. "diagnostic.hintSign": {
  781. "type": "string",
  782. "description": "Text of hint sign",
  783. "default": ">>"
  784. },
  785. "diagnostic.floatConfig": {
  786. "type": "object",
  787. "description": "Configure float window style of diagnostic message.",
  788. "allOf": [{ "$ref": "#/definitions/float" }],
  789. "additionalProperties": false,
  790. "properties": {
  791. "border": {},
  792. "rounded": {},
  793. "highlight": {},
  794. "borderhighlight": {},
  795. "title": {},
  796. "close": {},
  797. "maxHeight": {},
  798. "maxWidth": {},
  799. "winblend": {},
  800. "focusable": {},
  801. "shadow": {}
  802. }
  803. },
  804. "diagnostic.filetypeMap": {
  805. "type": "object",
  806. "description": "A map between buffer filetype and the filetype assigned to diagnostics. To syntax highlight diagnostics with their parent buffer type use `\"default\": \"bufferType\"`",
  807. "default": {}
  808. },
  809. "diagnostic.format": {
  810. "type": "string",
  811. "description": "Define the diagnostic format that shown in float window or echoed, available parts: source, code, severity, message",
  812. "default": "[%source%code] [%severity] %message"
  813. },
  814. "diagnostic.separateRelatedInformationAsDiagnostics": {
  815. "type": "boolean",
  816. "default": false,
  817. "description": "Separate related information as diagnostics."
  818. },
  819. "diagnostic.showUnused": {
  820. "type": "boolean",
  821. "default": true,
  822. "description": "Show diagnostics with unused tag, affects highlight, sign, virtual text, message"
  823. },
  824. "diagnostic.showDeprecated": {
  825. "type": "boolean",
  826. "default": true,
  827. "description": "Show diagnostics with deprecated tag."
  828. },
  829. "signature.enable": {
  830. "type": "boolean",
  831. "description": "Enable signature help when trigger character typed, require restart service on change.",
  832. "default": true
  833. },
  834. "signature.triggerSignatureWait": {
  835. "type": "integer",
  836. "default": 500,
  837. "minimum": 200,
  838. "maximum": 1000,
  839. "description": "Timeout for trigger signature help, in milliseconds."
  840. },
  841. "signature.target": {
  842. "type": "string",
  843. "description": "Target of signature help, use float when possible by default.",
  844. "default": "float",
  845. "enum": ["float", "echo"]
  846. },
  847. "signature.floatConfig": {
  848. "type": "object",
  849. "description": "Configure float window style of signature documents.",
  850. "allOf": [{ "$ref": "#/definitions/float" }],
  851. "additionalProperties": false,
  852. "properties": {
  853. "border": {},
  854. "rounded": {},
  855. "highlight": {},
  856. "borderhighlight": {},
  857. "title": {},
  858. "close": {},
  859. "maxHeight": {},
  860. "maxWidth": {},
  861. "winblend": {},
  862. "focusable": {},
  863. "shadow": {}
  864. }
  865. },
  866. "signature.preferShownAbove": {
  867. "type": "boolean",
  868. "description": "Show signature help float window above cursor when possible, require restart service on change.",
  869. "default": true
  870. },
  871. "signature.hideOnTextChange": {
  872. "type": "boolean",
  873. "description": "Hide signature float window when text changed on insert mode.",
  874. "default": false
  875. },
  876. "codeLens.enable": {
  877. "type": "boolean",
  878. "description": "Enable codeLens feature, require neovim with set virtual text feature.",
  879. "default": false
  880. },
  881. "codeLens.position": {
  882. "type": "string",
  883. "enum": ["top", "eol", "right_align"],
  884. "description": "Position of codeLens, requires nvim >= 0.6.0",
  885. "default": "top"
  886. },
  887. "codeLens.separator": {
  888. "type": "string",
  889. "description": "Separator text for codeLens in virtual text",
  890. "default": ""
  891. },
  892. "codeLens.subseparator": {
  893. "type": "string",
  894. "description": "Subseparator between codeLenses in virtual text",
  895. "default": " "
  896. },
  897. "refactor.openCommand": {
  898. "type": "string",
  899. "description": "Open command for refactor window.",
  900. "default": "vsplit"
  901. },
  902. "refactor.saveToFile": {
  903. "type": "boolean",
  904. "description": "Save changed buffer to file when write refactor buffer with ':noa wa' command.",
  905. "default": true
  906. },
  907. "refactor.beforeContext": {
  908. "type": "number",
  909. "default": 3,
  910. "description": "Print num lines of leading context before each match."
  911. },
  912. "refactor.afterContext": {
  913. "type": "number",
  914. "default": 3,
  915. "description": "Print num lines of trailing context after each match."
  916. },
  917. "refactor.showMenu": {
  918. "type": "string",
  919. "default": "<Tab>",
  920. "description": "Refactor buffer local mapping to bring up menu for this chunk."
  921. },
  922. "hover.target": {
  923. "type": "string",
  924. "description": "Target to show hover information, default is floating window when possible.",
  925. "enum": ["preview", "echo", "float"]
  926. },
  927. "hover.previewMaxHeight": {
  928. "type": "number",
  929. "default": 12,
  930. "description": "Max height of preview window for hover."
  931. },
  932. "hover.floatConfig": {
  933. "type": "object",
  934. "description": "Configure float window style of hover documents.",
  935. "allOf": [{ "$ref": "#/definitions/float" }],
  936. "additionalProperties": false,
  937. "properties": {
  938. "border": {},
  939. "rounded": {},
  940. "highlight": {},
  941. "borderhighlight": {},
  942. "title": {},
  943. "close": {},
  944. "maxHeight": {},
  945. "maxWidth": {},
  946. "winblend": {},
  947. "focusable": {},
  948. "shadow": {}
  949. }
  950. },
  951. "hover.autoHide": {
  952. "type": "boolean",
  953. "default": true,
  954. "description": "Automatically hide hover float window on CursorMove or InsertEnter."
  955. },
  956. "dialog.maxHeight": {
  957. "type": "number",
  958. "default": 30,
  959. "description": "Maximum height of dialog window."
  960. },
  961. "dialog.maxWidth": {
  962. "type": "number",
  963. "default": 80,
  964. "description": "Maximum width of dialog window."
  965. },
  966. "dialog.rounded": {
  967. "type": "boolean",
  968. "default": true,
  969. "description": "use rounded border for dialog window."
  970. },
  971. "dialog.confirmKey": {
  972. "type": "string",
  973. "default": "<cr>",
  974. "description": "Confirm key for confirm selection used by menu and picker, you can always use <esc> to cancel."
  975. },
  976. "dialog.pickerButtons": {
  977. "type": "boolean",
  978. "default": true,
  979. "description": "Show buttons for picker dialog window/popup."
  980. },
  981. "dialog.pickerButtonShortcut": {
  982. "type": "boolean",
  983. "default": true,
  984. "description": "Show shortcut in buttons of picker dialog window/popup, used when dialog.pickerButtons is true."
  985. },
  986. "dialog.floatHighlight": {
  987. "type": ["string", "null"],
  988. "default": null,
  989. "description": "Highlight group for dialog window/popup, default to 'CocFloating'"
  990. },
  991. "dialog.floatBorderHighlight": {
  992. "type": ["string", "null"],
  993. "default": null,
  994. "description": "Highlight group for border of dialog window/popup, default to 'CocFloating'"
  995. },
  996. "dialog.shortcutHighlight": {
  997. "type": "string",
  998. "default": "MoreMsg",
  999. "description": "Highlight group for shortcut character in menu dialog, default to 'MoreMsg'"
  1000. },
  1001. "notification.border": {
  1002. "type": "boolean",
  1003. "default": true,
  1004. "description": "Enable rounded border for notification windows."
  1005. },
  1006. "notification.timeout": {
  1007. "type": "integer",
  1008. "default": 10000,
  1009. "description": "Timeout for auto close notifications, in miniseconds."
  1010. },
  1011. "notification.marginRight": {
  1012. "type": "integer",
  1013. "default": 10,
  1014. "description": "Margin right to the right of editor window."
  1015. },
  1016. "notification.focusable": {
  1017. "type": "boolean",
  1018. "default": true,
  1019. "description": "Enable focus by user actions (wincmds, mouse events), neovim only."
  1020. },
  1021. "notification.maxWidth": {
  1022. "type": "integer",
  1023. "default": 60,
  1024. "description": "Maximum content width of notification dialog."
  1025. },
  1026. "notification.maxHeight": {
  1027. "type": "integer",
  1028. "default": 10,
  1029. "description": "Maximum content height of notification dialog."
  1030. },
  1031. "notification.disabledProgressSources": {
  1032. "type": "array",
  1033. "default": [],
  1034. "description": "Soureces that should be disabled for message progress, use * to disable all message only progresses",
  1035. "items": {
  1036. "type": "string"
  1037. }
  1038. },
  1039. "notification.minProgressWidth": {
  1040. "type": "integer",
  1041. "default": 30,
  1042. "description": "Minimal with of progress notification."
  1043. },
  1044. "notification.highlightGroup": {
  1045. "type": "string",
  1046. "default": "CocFloating",
  1047. "description": "Highlight group of notification dialog."
  1048. },
  1049. "notification.winblend": {
  1050. "type": "integer",
  1051. "default": 30,
  1052. "minimum": 0,
  1053. "maximum": 100,
  1054. "description": "Winblend option of notification window, neovim only."
  1055. },
  1056. "workspace.openOutputCommand": {
  1057. "type": "string",
  1058. "default": "vs",
  1059. "description": "Command used to open output channel."
  1060. },
  1061. "workspace.openResourceCommand": {
  1062. "type": "string",
  1063. "default": "tab drop",
  1064. "description": "Command to open files that not loaded, load files as hidden buffers when empty."
  1065. },
  1066. "workspace.ignoredFiletypes": {
  1067. "type": "array",
  1068. "default": [],
  1069. "description": "Filetypes that should be ignored for workspace folder resolve.",
  1070. "items": {
  1071. "type": "string"
  1072. }
  1073. },
  1074. "workspace.bottomUpFiletypes": {
  1075. "type": "array",
  1076. "default": [],
  1077. "description": "Filetypes that should have workspace folder should resolved from base directory of file, or [\"*\"] for any filetype.",
  1078. "items": {
  1079. "type": "string"
  1080. }
  1081. },
  1082. "workspace.ignoredFolders": {
  1083. "type": "array",
  1084. "default": ["$HOME"],
  1085. "description": "List of folders that should not be resolved as workspace folder, environment variables and minimatch patterns can be used.",
  1086. "items": {
  1087. "type": "string"
  1088. }
  1089. },
  1090. "workspace.workspaceFolderCheckCwd": {
  1091. "type": "boolean",
  1092. "default": true,
  1093. "description": "Whether the current working directory should be used first when checking patterns match for workspace folder."
  1094. },
  1095. "workspace.workspaceFolderFallbackCwd": {
  1096. "type": "boolean",
  1097. "default": true,
  1098. "description": "Use current working directory as workspace folder when no root patterns resolved."
  1099. },
  1100. "list.indicator": {
  1101. "type": "string",
  1102. "default": ">",
  1103. "description": "The character used as first character in prompt line"
  1104. },
  1105. "list.alignColumns": {
  1106. "type": "boolean",
  1107. "default": false,
  1108. "description": "Whether to align lists in columns, default: `false`"
  1109. },
  1110. "list.menuAction": {
  1111. "type": "boolean",
  1112. "default": false,
  1113. "description": "Use menu picker instead of confirm() for choose action."
  1114. },
  1115. "list.interactiveDebounceTime": {
  1116. "type": "number",
  1117. "default": 100,
  1118. "description": "Debounce time for input change on interactive mode."
  1119. },
  1120. "list.height": {
  1121. "type": "number",
  1122. "default": 10,
  1123. "description": "Height of split list window."
  1124. },
  1125. "list.statusLineSegments": {
  1126. "type": ["array", "null"],
  1127. "default": [
  1128. "%#CocListMode#-- %{coc#list#status(\"mode\")} --%*",
  1129. "%{coc#list#status(\"loading\")}",
  1130. "%{coc#list#status(\"args\")}",
  1131. "(%L/%{coc#list#status(\"total\")})",
  1132. "%=",
  1133. "%#CocListPath# %{coc#list#status(\"cwd\")} %l/%L%*"
  1134. ],
  1135. "items": {
  1136. "types": "string"
  1137. },
  1138. "description": "An array of statusline segments that will be used to draw the status line for list windows."
  1139. },
  1140. "list.signOffset": {
  1141. "type": "number",
  1142. "default": 900,
  1143. "description": "Sign offset of list, should be different from other plugins."
  1144. },
  1145. "list.selectedSignText": {
  1146. "type": "string",
  1147. "default": "*",
  1148. "description": "Sign text for selected lines."
  1149. },
  1150. "list.extendedSearchMode": {
  1151. "type": "boolean",
  1152. "default": true,
  1153. "description": "Enable extended search mode which allows multiple search patterns delimited by spaces."
  1154. },
  1155. "list.limitLines": {
  1156. "type": ["number", "null"],
  1157. "default": null,
  1158. "description": "Limit lines for list buffer."
  1159. },
  1160. "list.maxPreviewHeight": {
  1161. "type": "number",
  1162. "default": 12,
  1163. "description": "Max height for preview window of list."
  1164. },
  1165. "list.previewSplitRight": {
  1166. "type": "boolean",
  1167. "default": false,
  1168. "description": "Use vsplit for preview window."
  1169. },
  1170. "list.previewHighlightGroup": {
  1171. "type": "string",
  1172. "default": "Search",
  1173. "description": "Highlight group used for highlight the range in preview window."
  1174. },
  1175. "list.previewToplineStyle": {
  1176. "type": "string",
  1177. "default": "offset",
  1178. "description": "Topline style for list previews",
  1179. "enum": ["offset", "middle"]
  1180. },
  1181. "list.previewToplineOffset": {
  1182. "type": "number",
  1183. "default": 3,
  1184. "description": "Topline offset for list previews"
  1185. },
  1186. "list.nextKeymap": {
  1187. "type": "string",
  1188. "default": "<C-j>",
  1189. "description": "Key used for select next line on insert mode."
  1190. },
  1191. "list.previousKeymap": {
  1192. "type": "string",
  1193. "default": "<C-k>",
  1194. "description": "Key used for select previous line on insert mode."
  1195. },
  1196. "list.normalMappings": {
  1197. "type": "object",
  1198. "default": {},
  1199. "description": "Custom keymappings on normal mode."
  1200. },
  1201. "list.insertMappings": {
  1202. "type": "object",
  1203. "default": {},
  1204. "description": "Custom keymappings on insert mode."
  1205. },
  1206. "list.source.diagnostics.includeCode": {
  1207. "type": "boolean",
  1208. "description": "Whether to show the diagnostic code in the list.",
  1209. "default": true
  1210. },
  1211. "list.source.diagnostics.pathFormat": {
  1212. "type": "string",
  1213. "description": "Decide how the filepath is shown in the list.",
  1214. "enum": ["full", "short", "filename", "hidden"],
  1215. "default": "full"
  1216. },
  1217. "list.source.symbols.excludes": {
  1218. "type": "array",
  1219. "default": [],
  1220. "description": "Patterns of minimatch for filepath to execlude from symbols list.",
  1221. "items": {
  1222. "type": "string"
  1223. }
  1224. },
  1225. "list.source.outline.ctagsFilestypes": {
  1226. "type": "array",
  1227. "default": [],
  1228. "description": "Filetypes that should use ctags for outline instead of language server.",
  1229. "items": {
  1230. "type": "string"
  1231. }
  1232. },
  1233. "cursors.cancelKey": {
  1234. "type": "string",
  1235. "default": "<esc>",
  1236. "description": "Key used for cancel cursors session."
  1237. },
  1238. "cursors.nextKey": {
  1239. "type": "string",
  1240. "default": "<C-n>",
  1241. "description": "Key used for jump to next cursors position."
  1242. },
  1243. "cursors.previousKey": {
  1244. "type": "string",
  1245. "default": "<C-p>",
  1246. "description": "Key used for jump to previous cursors position."
  1247. },
  1248. "cursors.wrapscan": {
  1249. "type": "boolean",
  1250. "default": true,
  1251. "description": "Searches wrap around the first or last cursors range."
  1252. },
  1253. "semanticTokens.filetypes": {
  1254. "type": "array",
  1255. "description": "Filetypes that enable semanticTokens highlighting or [\"*\"] for any filetype",
  1256. "default": [],
  1257. "items": {
  1258. "type": "string"
  1259. }
  1260. },
  1261. "semanticTokens.highlightPriority": {
  1262. "type": "number",
  1263. "description": "Priority for semantic tokens highlight.",
  1264. "default": 2048,
  1265. "maximum": 4096
  1266. },
  1267. "semanticTokens.incrementTypes": {
  1268. "type": "array",
  1269. "description": "Semantic token types that should increase highlight when insert at the start and end position of token.",
  1270. "default": ["variable", "string", "parameter"],
  1271. "items": {
  1272. "type": "string"
  1273. }
  1274. },
  1275. "semanticTokens.combinedModifiers": {
  1276. "type": "array",
  1277. "description": "Semantic token modifiers that should have highlight combined with syntax highlights.",
  1278. "default": ["deprecated"],
  1279. "items": {
  1280. "type": "string"
  1281. }
  1282. },
  1283. "tree.closedIcon": {
  1284. "type": "string",
  1285. "default": "+",
  1286. "description": "Closed icon of tree view."
  1287. },
  1288. "tree.openedIcon": {
  1289. "type": "string",
  1290. "default": "-",
  1291. "description": "Opend icon of tree view."
  1292. },
  1293. "tree.key.toggleSelection": {
  1294. "type": "string",
  1295. "default": "<space>",
  1296. "description": "Trigger key to select/unselect item"
  1297. },
  1298. "tree.key.toggle": {
  1299. "type": "string",
  1300. "default": "t",
  1301. "description": "Trigger key to toggle expand state of tree node, does nothing with leaf node."
  1302. },
  1303. "tree.key.actions": {
  1304. "type": "string",
  1305. "default": "<tab>",
  1306. "description": "Trigger key to invoke actions."
  1307. },
  1308. "tree.key.collapseAll": {
  1309. "type": "string",
  1310. "default": "M",
  1311. "description": "Trigger key to collapse all tree node."
  1312. },
  1313. "tree.key.invoke": {
  1314. "type": "string",
  1315. "default": "<cr>",
  1316. "description": "Trigger key to invoke default command of current node or selection."
  1317. },
  1318. "tree.key.close": {
  1319. "type": "string",
  1320. "default": "<esc>",
  1321. "description": "Trigger key to dispose the tree and close tree window."
  1322. },
  1323. "tree.key.activeFilter": {
  1324. "type": "string",
  1325. "default": "f",
  1326. "description": "Trigger key active filter."
  1327. },
  1328. "tree.key.selectNext": {
  1329. "type": "string",
  1330. "default": "<C-j>",
  1331. "description": "Trigger key to select next item during filter."
  1332. },
  1333. "tree.key.selectPrevious": {
  1334. "type": "string",
  1335. "default": "<C-k>",
  1336. "description": "Trigger key to select previous item during filter."
  1337. },
  1338. "outline.showLineNumber": {
  1339. "type": "boolean",
  1340. "default": true,
  1341. "description": "Show line number of symbols."
  1342. },
  1343. "outline.detailAsDescription": {
  1344. "type": "boolean",
  1345. "default": true,
  1346. "description": "Show detail as description aside with label, when false detail will be shown in tooltip on cursor hold."
  1347. },
  1348. "outline.splitCommand": {
  1349. "type": "string",
  1350. "default": "botright 30vs",
  1351. "description": "Window split command used by outline."
  1352. },
  1353. "outline.followCursor": {
  1354. "type": "boolean",
  1355. "default": true,
  1356. "description": "Reveal item in outline tree on cursor hold."
  1357. },
  1358. "outline.autoWidth": {
  1359. "type": "boolean",
  1360. "default": true,
  1361. "description": "Automatically increase window width to avoid wrapped lines."
  1362. },
  1363. "outline.keepWindow": {
  1364. "type": "boolean",
  1365. "default": false,
  1366. "description": "Jump back to original window after outline is shown."
  1367. },
  1368. "outline.sortBy": {
  1369. "type": "string",
  1370. "default": "category",
  1371. "description": "Sort method for symbols.",
  1372. "enum": ["position", "name", "category"]
  1373. },
  1374. "outline.switchSortKey": {
  1375. "type": "string",
  1376. "default": "<C-s>",
  1377. "description": "The key used to switch sort method for symbols provider of current tree view."
  1378. },
  1379. "outline.expandLevel": {
  1380. "type": "number",
  1381. "default": 1,
  1382. "description": "Expand level of tree nodes."
  1383. },
  1384. "outline.checkBufferSwitch": {
  1385. "type": "boolean",
  1386. "default": true,
  1387. "description": "Recreate outline view after user changed to another buffer on current tab."
  1388. },
  1389. "outline.codeActionKinds": {
  1390. "type": "array",
  1391. "default": ["", "quickfix", "refactor"],
  1392. "description": "Filter code actions in actions menu by kinds.",
  1393. "items": {
  1394. "type": "string",
  1395. "enum": ["", "quickfix", "refactor", "source"]
  1396. }
  1397. },
  1398. "callHierarchy.openCommand": {
  1399. "type": "string",
  1400. "default": "edit",
  1401. "description": "Open command for callHierarchy tree view."
  1402. },
  1403. "callHierarchy.splitCommand": {
  1404. "type": "string",
  1405. "default": "botright 30vs",
  1406. "description": "Window split command used by callHierarchy tree view."
  1407. },
  1408. "callHierarchy.enableTooltip": {
  1409. "type": "boolean",
  1410. "default": true,
  1411. "description": "Enable tooltip to show relative filepath of call hierarchy."
  1412. },
  1413. "coc.preferences.enableLinkedEditing": {
  1414. "type": "boolean",
  1415. "default": false,
  1416. "description": "Enable linked editing support."
  1417. },
  1418. "coc.preferences.enableMessageDialog": {
  1419. "type": "boolean",
  1420. "default": false,
  1421. "description": "Enable messages shown in notification dialog."
  1422. },
  1423. "coc.preferences.maxFileSize": {
  1424. "type": "string",
  1425. "default": "10MB",
  1426. "description": "Maximum file size in bytes that coc.nvim should handle, default '10MB'"
  1427. },
  1428. "coc.preferences.useQuickfixForLocations": {
  1429. "type": "boolean",
  1430. "description": "Use vim's quickfix list for jump locations,\n need restart on change.",
  1431. "default": false
  1432. },
  1433. "coc.preferences.extensionUpdateCheck": {
  1434. "type": "string",
  1435. "default": "never",
  1436. "description": "Interval for check extension update, could be daily, weekly, never",
  1437. "enum": ["daily", "weekly", "never"]
  1438. },
  1439. "coc.preferences.snippetStatusText": {
  1440. "type": "string",
  1441. "default": "SNIP",
  1442. "description": "Text shown in statusline to indicate snippet session is activated."
  1443. },
  1444. "coc.preferences.snippetHighlight": {
  1445. "type": "boolean",
  1446. "description": "Use highlight group 'CocSnippetVisual' to highlight placeholders with same index of current one.",
  1447. "default": false
  1448. },
  1449. "coc.preferences.currentFunctionSymbolAutoUpdate": {
  1450. "type": "boolean",
  1451. "description": "Automatically update the value of b:coc_current_function on CursorHold event",
  1452. "default": false
  1453. },
  1454. "coc.preferences.formatOnSaveFiletypes": {
  1455. "type": "array",
  1456. "default": [],
  1457. "description": "Filetypes that should run format on save.",
  1458. "items": {
  1459. "type": "string"
  1460. }
  1461. },
  1462. "coc.preferences.rootPatterns": {
  1463. "type": "array",
  1464. "default": [".git", ".hg", ".projections.json"],
  1465. "description": "Root patterns to resolve workspaceFolder from parent folders of opened files, resolved from up to down.",
  1466. "items": {
  1467. "type": "string"
  1468. }
  1469. },
  1470. "coc.preferences.watchmanPath": {
  1471. "type": "string",
  1472. "description": "executable path for https://facebook.github.io/watchman/, detected from $PATH by default",
  1473. "default": null
  1474. },
  1475. "coc.preferences.jumpCommand": {
  1476. "anyOf": [
  1477. {
  1478. "type": "string",
  1479. "enum": [
  1480. "edit",
  1481. "split",
  1482. "vsplit",
  1483. "tabe",
  1484. "drop",
  1485. "tab drop",
  1486. "pedit"
  1487. ]
  1488. },
  1489. { "type": "string", "minimum": 1 }
  1490. ],
  1491. "description": "Command used for location jump, like goto definition, goto references etc. Can be also a custom command that gives file as an argument.",
  1492. "default": "edit"
  1493. },
  1494. "coc.preferences.messageLevel": {
  1495. "type": "string",
  1496. "description": "Message level for filter echoed messages, could be 'more', 'warning' and 'error'",
  1497. "default": "more",
  1498. "enum": ["more", "warning", "error"]
  1499. },
  1500. "coc.preferences.bracketEnterImprove": {
  1501. "type": "boolean",
  1502. "description": "Improve enter inside bracket `<> {} [] ()` by add new empty line below and place cursor to it. Works with `coc#on_enter()`",
  1503. "default": true
  1504. },
  1505. "coc.preferences.formatOnType": {
  1506. "type": "boolean",
  1507. "description": "Set to true to enable formatting on typing",
  1508. "default": false
  1509. },
  1510. "coc.preferences.formatOnTypeFiletypes": {
  1511. "type": "array",
  1512. "default": [],
  1513. "description": "Filetypes that should run format on typing. Only take effect when `coc.preferences.formatOnType` set `true`",
  1514. "items": {
  1515. "type": "string"
  1516. }
  1517. },
  1518. "coc.preferences.floatActions": {
  1519. "type": "boolean",
  1520. "description": "Set to false to disable float/popup support for actions menu, won't work on vim without float or popup window support.",
  1521. "default": true
  1522. },
  1523. "coc.preferences.promptInput": {
  1524. "type": "boolean",
  1525. "description": "Use prompt buffer in float window for user input.",
  1526. "default": true
  1527. },
  1528. "coc.preferences.enableMarkdown": {
  1529. "type": "boolean",
  1530. "description": "Tell the language server that markdown text format is supported, note that markdown text may not rendered as expected.",
  1531. "default": true
  1532. },
  1533. "coc.preferences.excludeImageLinksInMarkdownDocument": {
  1534. "type": "boolean",
  1535. "description": "Exclude image links from markdown text in float window.",
  1536. "default": true
  1537. },
  1538. "coc.preferences.silentAutoupdate": {
  1539. "type": "boolean",
  1540. "description": "Not open split window with update status when performing auto update.",
  1541. "default": true
  1542. },
  1543. "coc.preferences.willSaveHandlerTimeout": {
  1544. "type": "integer",
  1545. "default": 500,
  1546. "minimum": 200,
  1547. "maximum": 5000,
  1548. "description": "Will save handler timeout"
  1549. },
  1550. "coc.preferences.renameFillCurrent": {
  1551. "type": "boolean",
  1552. "default": true,
  1553. "description": "Disable to stop Refactor-Rename float/popup window from populating with old name in the New Name field."
  1554. },
  1555. "coc.source.around.enable": {
  1556. "type": "boolean",
  1557. "default": true
  1558. },
  1559. "coc.source.around.shortcut": {
  1560. "type": "string",
  1561. "default": "A"
  1562. },
  1563. "coc.source.around.priority": {
  1564. "type": "integer",
  1565. "default": 1
  1566. },
  1567. "coc.source.around.disableSyntaxes": {
  1568. "type": "array",
  1569. "default": [],
  1570. "items": {
  1571. "type": "string"
  1572. }
  1573. },
  1574. "coc.source.buffer.enable": {
  1575. "type": "boolean",
  1576. "default": true
  1577. },
  1578. "coc.source.buffer.shortcut": {
  1579. "type": "string",
  1580. "default": "B"
  1581. },
  1582. "coc.source.buffer.priority": {
  1583. "type": "integer",
  1584. "default": 1
  1585. },
  1586. "coc.source.buffer.ignoreGitignore": {
  1587. "type": "boolean",
  1588. "default": true,
  1589. "description": "Ignore git ignored files for buffer words"
  1590. },
  1591. "coc.source.buffer.disableSyntaxes": {
  1592. "type": "array",
  1593. "default": [],
  1594. "items": {
  1595. "type": "string"
  1596. }
  1597. },
  1598. "coc.source.file.enable": {
  1599. "type": "boolean",
  1600. "default": true
  1601. },
  1602. "coc.source.file.shortcut": {
  1603. "type": "string",
  1604. "default": "F"
  1605. },
  1606. "coc.source.file.priority": {
  1607. "type": "integer",
  1608. "default": 10
  1609. },
  1610. "coc.source.file.disableSyntaxes": {
  1611. "type": "array",
  1612. "default": [],
  1613. "items": {
  1614. "type": "string"
  1615. }
  1616. },
  1617. "coc.source.file.triggerCharacters": {
  1618. "type": "array",
  1619. "default": ["/", "\\"],
  1620. "items": {
  1621. "type": "string"
  1622. }
  1623. },
  1624. "coc.source.file.trimSameExts": {
  1625. "type": "array",
  1626. "default": [".ts", ".js"],
  1627. "description": "Trim same extension on file completion",
  1628. "items": {
  1629. "type": "string"
  1630. }
  1631. },
  1632. "coc.source.file.ignoreHidden": {
  1633. "type": "boolean",
  1634. "default": true,
  1635. "description": "Ignore completion for hidden files"
  1636. },
  1637. "coc.source.file.ignorePatterns": {
  1638. "type": "array",
  1639. "default": [],
  1640. "description": "Ignore patterns of matcher",
  1641. "items": {
  1642. "type": "string"
  1643. }
  1644. },
  1645. "languageserver": {
  1646. "type": "object",
  1647. "default": {},
  1648. "description": "Dictionary of languageservers, key is used as id of languageserver.",
  1649. "patternProperties": {
  1650. "^[_a-zA-Z]+$": {
  1651. "oneOf": [
  1652. {
  1653. "$ref": "#/definitions/languageServerModule"
  1654. },
  1655. {
  1656. "$ref": "#/definitions/languageServerCommand"
  1657. },
  1658. {
  1659. "$ref": "#/definitions/languageServerSocket"
  1660. }
  1661. ]
  1662. }
  1663. }
  1664. }
  1665. }
  1666. }