167 lines
4.8 KiB
JSON
167 lines
4.8 KiB
JSON
{
|
|
"name": "coc-snippets",
|
|
"version": "2.4.6",
|
|
"description": "Snippets extension for coc.nvim",
|
|
"main": "lib/index.js",
|
|
"publisher": "chemzqm",
|
|
"keywords": [
|
|
"coc.nvim",
|
|
"snippets",
|
|
"colors"
|
|
],
|
|
"engines": {
|
|
"coc": "^0.0.80"
|
|
},
|
|
"scripts": {
|
|
"prepare": "node esbuild.js"
|
|
},
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"title": "Edit user snippets file of current document filetype.",
|
|
"command": "snippets.editSnippets"
|
|
},
|
|
{
|
|
"title": "Edit snippets files of current document filetype.",
|
|
"command": "snippets.openSnippetFiles"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"type": "object",
|
|
"properties": {
|
|
"snippets.priority": {
|
|
"type": "number",
|
|
"default": 90,
|
|
"description": "Completion source priority of snippets."
|
|
},
|
|
"snippets.editSnippetsCommand": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Open command used for snippets.editSnippets command, use coc.preferences.jumpCommand by default."
|
|
},
|
|
"snippets.trace": {
|
|
"type": "string",
|
|
"default": "error",
|
|
"enum": [
|
|
"error",
|
|
"verbose"
|
|
],
|
|
"description": "Trace level of snippets channel."
|
|
},
|
|
"snippets.enableStatusItem": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable status item in g:coc_status used for statusline."
|
|
},
|
|
"snippets.loadFromExtensions": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable load snippets from extensions."
|
|
},
|
|
"snippets.textmateSnippetsRoots": {
|
|
"type": "array",
|
|
"default": [],
|
|
"description": "List of directories that contains textmate/VSCode snippets to load.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"snippets.extends": {
|
|
"type": "object",
|
|
"default": {},
|
|
"description": "Configure filetypes to inherit with, ex: {\"cpp\": [\"c\"], \"javascriptreact\": [\"javascript\"]}"
|
|
},
|
|
"snippets.userSnippetsDirectory": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Directory that contains custom user ultisnips snippets, use ultisnips in extension root by default."
|
|
},
|
|
"snippets.shortcut": {
|
|
"type": "string",
|
|
"default": "S",
|
|
"description": "Shortcut in completion menu."
|
|
},
|
|
"snippets.triggerCharacters": {
|
|
"type": "array",
|
|
"default": [],
|
|
"description": "Trigger characters for trigger snippets completion.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"snippets.autoTrigger": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable trigger auto trigger snippet after type character."
|
|
},
|
|
"snippets.ultisnips.enable": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable load snippets from ultisnips folders."
|
|
},
|
|
"snippets.ultisnips.usePythonx": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Use :pyx command for python code when possible."
|
|
},
|
|
"snippets.ultisnips.pythonVersion": {
|
|
"type": "number",
|
|
"default": 3,
|
|
"description": "Python version used for python code when not using pyx."
|
|
},
|
|
"snippets.ultisnips.directories": {
|
|
"type": "array",
|
|
"default": [
|
|
"UltiSnips"
|
|
],
|
|
"description": "Directories that searched for ultisnips snippet files, could be directory as subfolder in $runtimepath or absolute paths.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"snippets.snipmate.enable": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Load snipmate snippets from snippets directory in runtimepath."
|
|
},
|
|
"snippets.snipmate.author": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Author name used for g:snips_author"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"json",
|
|
"js"
|
|
],
|
|
"transform": {
|
|
"^.+\\.tsx?$": "ts-jest"
|
|
},
|
|
"testRegex": "tests/.*\\.ts$"
|
|
},
|
|
"author": "chemzqm@gmail.com",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/jest": "^26.0.15",
|
|
"@types/node": "^12.12.0",
|
|
"@types/pify": "^3.0.2",
|
|
"@types/uuid": "^8.3.0",
|
|
"coc.nvim": "^0.0.81-next.6",
|
|
"esbuild": "^0.8.33",
|
|
"jest": "^26.6.1",
|
|
"jsonc-parser": "^2.3.1",
|
|
"pify": "^5.0.0",
|
|
"ts-jest": "^26.4.3",
|
|
"typescript": "^4.1.3"
|
|
},
|
|
"dependencies": {}
|
|
}
|