1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-25 18:41:40 +03:00
nil/editors/coc-nil/package.json
2023-07-07 01:42:22 +08:00

107 lines
2.7 KiB
JSON

{
"name": "coc-nil",
"version": "0.0.0",
"description": "Nix extension using nil LSP for coc.nvim",
"author": "oxalica <oxalicc@pm.me>",
"license": "MIT OR Apache-2.0",
"main": "lib/main.js",
"keywords": [
"coc.nvim"
],
"engines": {
"coc": "^0.0.80"
},
"scripts": {
"clean": "rimraf lib",
"lint": "eslint src --ext ts",
"build": "esbuild src/main.ts --bundle --platform=node --target=node14 --external:coc.nvim --outdir=lib --color=false",
"watch": "esbuild src/main.ts --bundle --platform=node --target=node14 --external:coc.nvim --outdir=lib --color=false --watch",
"prepare": "npm run clean && npm run build"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"coc.nvim": "^0.0.82",
"esbuild": "^0.18.11",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"typescript": "^4.9.5"
},
"activationEvents": [
"onLanguage:nix"
],
"contributes": {
"rootPatterns": [
{
"filetype": "nix",
"patterns": [
"flake.nix"
]
}
],
"configuration": {
"type": "object",
"title": "coc-nil configuration",
"properties": {
"nil.enable": {
"type": "boolean",
"default": true,
"description": "Enable `coc-nil` extension"
},
"nil.server.path": {
"type": "string",
"default": "nil",
"description": "Path to the `nil` LSP server"
},
"nil.formatting.command": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"default": null,
"description": "External formatter command with arguments"
},
"nil.diagnostics.ignored": {
"type": "string",
"items": {
"type": "string"
},
"default": [],
"description": "Ignored diagnostic kinds"
},
"nil.diagnostics.excludedFiles": {
"type": "string",
"items": {
"type": "string"
},
"default": [],
"description": "File globs to exclude from showing diagnostics"
},
"nil.nix.binary": {
"type": "string",
"default": "nix",
"description": "The path to the `nix` binary"
}
}
},
"commands": [
{
"command": "nil.reloadFlake",
"title": "Reload the flake setup of the workspace",
"category": "nil"
}
]
}
}