2023-02-26 01:30:07 +03:00
|
|
|
{
|
|
|
|
"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": {
|
2023-07-06 07:35:24 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
|
|
"@typescript-eslint/parser": "^5.61.0",
|
2023-02-26 01:30:07 +03:00
|
|
|
"coc.nvim": "^0.0.82",
|
2023-07-06 07:35:24 +03:00
|
|
|
"esbuild": "^0.18.11",
|
|
|
|
"eslint": "^8.44.0",
|
|
|
|
"eslint-config-prettier": "^8.8.0",
|
2023-02-26 01:30:07 +03:00
|
|
|
"eslint-plugin-prettier": "^4.2.1",
|
2023-07-06 07:35:24 +03:00
|
|
|
"prettier": "^2.8.8",
|
|
|
|
"rimraf": "^5.0.1",
|
2023-02-26 01:30:07 +03:00
|
|
|
"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"
|
|
|
|
},
|
2023-02-26 03:52:46 +03:00
|
|
|
"default": null,
|
2023-02-26 01:30:07 +03:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-28 20:20:11 +03:00
|
|
|
"commands": [
|
|
|
|
{
|
|
|
|
"command": "nil.reloadFlake",
|
|
|
|
"title": "Reload the flake setup of the workspace",
|
|
|
|
"category": "nil"
|
|
|
|
}
|
|
|
|
]
|
2023-02-26 01:30:07 +03:00
|
|
|
}
|
|
|
|
}
|