vim-language-server: init at 2.3.1
This commit is contained in:
parent
cc744fc74a
commit
578ee3b8b3
2 changed files with 92 additions and 0 deletions
49
pkgs/by-name/vi/vim-language-server/package.json
Normal file
49
pkgs/by-name/vi/vim-language-server/package.json
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
"name": "vim-language-server",
|
||||||
|
"version": "2.3.1",
|
||||||
|
"description": "vim language server",
|
||||||
|
"keywords": [
|
||||||
|
"viml",
|
||||||
|
"vim",
|
||||||
|
"lsp",
|
||||||
|
"language",
|
||||||
|
"server",
|
||||||
|
"autocomplete"
|
||||||
|
],
|
||||||
|
"main": "./out/index.js",
|
||||||
|
"repository": "https://github.com/iamcco/vim-language-server",
|
||||||
|
"author": "iamcco <ooiss@qq.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"build-docs": "rm ./src/docs/builtin-docs.json && ./bin/build-docs.js",
|
||||||
|
"build": "rm -rf ./out && webpack",
|
||||||
|
"watch": "webpack -w",
|
||||||
|
"test": "mocha test/src/**/*.ts --require ts-node/register",
|
||||||
|
"lint": "tslint -c tslint.json --format verbose {.,test}/src/**/*.ts src/index.ts",
|
||||||
|
"fix": "tslint -c tslint.json --fix {.,test}/src/**/*.ts src/index.ts"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"vim-language-server": "./bin/index.js"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/mocha": "^7.0.2",
|
||||||
|
"@types/node": "^11.13.6",
|
||||||
|
"chai": "^4.2.0",
|
||||||
|
"chai-as-promised": "^7.1.1",
|
||||||
|
"fast-glob": "^3.2.4",
|
||||||
|
"findup": "^0.1.5",
|
||||||
|
"mocha": "^7.1.2",
|
||||||
|
"rxjs": "^6.6.7",
|
||||||
|
"rxjs-operators": "^1.1.3",
|
||||||
|
"shvl": "^2.0.0",
|
||||||
|
"ts-loader": "^8.1.0",
|
||||||
|
"ts-node": "^9.1.1",
|
||||||
|
"tslint": "^6.1.3",
|
||||||
|
"typescript": "^4.2.3",
|
||||||
|
"vscode-languageserver": "^7.0.0",
|
||||||
|
"vscode-languageserver-textdocument": "^1.0.1",
|
||||||
|
"vscode-uri": "^3.0.2",
|
||||||
|
"webpack": "^5.30.0",
|
||||||
|
"webpack-cli": "^4.6.0"
|
||||||
|
}
|
||||||
|
}
|
43
pkgs/by-name/vi/vim-language-server/package.nix
Normal file
43
pkgs/by-name/vi/vim-language-server/package.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib
|
||||||
|
, mkYarnPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchYarnDeps
|
||||||
|
}:
|
||||||
|
|
||||||
|
mkYarnPackage rec {
|
||||||
|
pname = "vim-language-server";
|
||||||
|
version = "2.3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "iamcco";
|
||||||
|
repo = "vim-language-server";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-NfBKNCTvCMIJrSiTlCG+LtVoMBMdCc3rzpDb9Vp2CGM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
packageJSON = ./package.json;
|
||||||
|
offlineCache = fetchYarnDeps {
|
||||||
|
yarnLock = src + "/yarn.lock";
|
||||||
|
hash = "sha256-mo8urQaWIHu33+r0Y7mL9mJ/aSe/5CihuIetTeDHEUQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
# https://stackoverflow.com/a/69699772/4935114
|
||||||
|
env NODE_OPTIONS=--openssl-legacy-provider yarn --offline build
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
doDist = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "VImScript language server, LSP for vim script";
|
||||||
|
homepage = "https://github.com/iamcco/vim-language-server";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ doronbehar ];
|
||||||
|
mainProgram = "vim-language-server";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue