My dotfiles
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

186 行
5.4 KiB

  1. {
  2. "name": "coc-snippets",
  3. "version": "2.1.28",
  4. "description": "Snippets extension for coc.nvim",
  5. "main": "lib/index.js",
  6. "publisher": "chemzqm",
  7. "keywords": [
  8. "coc.nvim",
  9. "snippets",
  10. "colors"
  11. ],
  12. "engines": {
  13. "coc": "^0.0.61"
  14. },
  15. "scripts": {
  16. "clean": "rimraf lib",
  17. "build": "webpack",
  18. "prepare": "npx npm-run-all clean build"
  19. },
  20. "activationEvents": [
  21. "*"
  22. ],
  23. "contributes": {
  24. "commands": [
  25. {
  26. "title": "Edit user snippets file of current document filetype.",
  27. "command": "snippets.editSnippets"
  28. },
  29. {
  30. "title": "Edit snippets files of current document filetype.",
  31. "command": "snippets.openSnippetFiles"
  32. }
  33. ],
  34. "configuration": {
  35. "type": "object",
  36. "properties": {
  37. "snippets.priority": {
  38. "type": "number",
  39. "default": 90,
  40. "description": "Completion source priority of snippets."
  41. },
  42. "snippets.editSnippetsCommand": {
  43. "type": "string",
  44. "default": "",
  45. "description": "Open command used for snippets.editSnippets command, use coc.preferences.jumpCommand by default."
  46. },
  47. "snippets.trace": {
  48. "type": "string",
  49. "default": "error",
  50. "enum": [
  51. "error",
  52. "verbose"
  53. ],
  54. "description": "Trace level of snippets channel."
  55. },
  56. "snippets.enableStatusItem": {
  57. "type": "boolean",
  58. "default": true,
  59. "description": "Enable status item in g:coc_status used for statusline."
  60. },
  61. "snippets.loadFromExtensions": {
  62. "type": "boolean",
  63. "default": true,
  64. "description": "Enable load snippets from extensions."
  65. },
  66. "snippets.textmateSnippetsRoots": {
  67. "type": "array",
  68. "default": [],
  69. "description": "List of directories that contains textmate/VSCode snippets to load.",
  70. "items": {
  71. "type": "string"
  72. }
  73. },
  74. "snippets.extends": {
  75. "type": "object",
  76. "default": {},
  77. "description": "Configure filetypes to inherit with, ex: {\"cpp\": [\"c\"], \"javascriptreact\": [\"javascript\"]}"
  78. },
  79. "snippets.userSnippetsDirectory": {
  80. "type": "string",
  81. "default": "",
  82. "description": "Directory that contains custom user ultisnips snippets, use ultisnips in extension root by default."
  83. },
  84. "snippets.shortcut": {
  85. "type": "string",
  86. "default": "S",
  87. "description": "Shortcut in completion menu."
  88. },
  89. "snippets.triggerCharacters": {
  90. "type": "array",
  91. "default": [],
  92. "description": "Trigger characters for trigger snippets completion.",
  93. "items": {
  94. "type": "string"
  95. }
  96. },
  97. "snippets.autoTrigger": {
  98. "type": "boolean",
  99. "default": true,
  100. "description": "Enable trigger auto trigger snippet after type character."
  101. },
  102. "snippets.convertToSnippetsAction": {
  103. "type": "boolean",
  104. "default": true,
  105. "description": "Add convert to snippet to code action list."
  106. },
  107. "snippets.ultisnips.enable": {
  108. "type": "boolean",
  109. "default": true,
  110. "description": "Enable load snippets from ultisnips folders."
  111. },
  112. "snippets.ultisnips.usePythonx": {
  113. "type": "boolean",
  114. "default": true,
  115. "description": "Use :pyx command for python code when possible."
  116. },
  117. "snippets.ultisnips.pythonVersion": {
  118. "type": "number",
  119. "default": 3,
  120. "description": "Python version used for python code when not using pyx."
  121. },
  122. "snippets.ultisnips.directories": {
  123. "type": "array",
  124. "default": [
  125. "UltiSnips"
  126. ],
  127. "description": "Directories that searched for snippet files, could be directory as subfolder in $runtimepath or absolute paths.",
  128. "items": {
  129. "type": "string"
  130. }
  131. },
  132. "snippets.snipmate.enable": {
  133. "type": "boolean",
  134. "default": true,
  135. "description": "Load snipmate snippets from snippets directory in runtimepath."
  136. },
  137. "snippets.snipmate.author": {
  138. "type": "string",
  139. "default": "",
  140. "description": "Author name used for g:snips_author"
  141. }
  142. }
  143. }
  144. },
  145. "jest": {
  146. "testEnvironment": "node",
  147. "moduleFileExtensions": [
  148. "ts",
  149. "tsx",
  150. "json",
  151. "js"
  152. ],
  153. "transform": {
  154. "^.+\\.tsx?$": "ts-jest"
  155. },
  156. "testRegex": "tests/.*\\.ts$"
  157. },
  158. "author": "chemzqm@gmail.com",
  159. "license": "MIT",
  160. "devDependencies": {
  161. "@chemzqm/tsconfig": "^0.0.3",
  162. "@chemzqm/tslint-config": "^1.0.18",
  163. "@types/jest": "^25.1.4",
  164. "@types/node": "^13.9.1",
  165. "@types/pify": "^3.0.2",
  166. "@types/uuid": "^7.0.0",
  167. "@types/which": "^1.3.2",
  168. "coc.nvim": "^0.0.77",
  169. "debounce": "^1.2.0",
  170. "jest": "^25.1.0",
  171. "jsonc-parser": "^2.2.1",
  172. "pify": "^5.0.0",
  173. "rimraf": "^3.0.2",
  174. "ts-jest": "^25.2.1",
  175. "ts-loader": "^6.2.1",
  176. "tslint": "^6.1.0",
  177. "typescript": "^3.8.3",
  178. "uuid": "^7.0.2",
  179. "vscode-languageserver-protocol": "^3.15.3",
  180. "webpack": "^4.42.0",
  181. "webpack-cli": "^3.3.11",
  182. "which": "^2.0.2"
  183. },
  184. "dependencies": {}
  185. }