UNPKG

fish-lsp

Version:

LSP implementation for fish/fish-shell

245 lines (244 loc) 8.73 kB
{ "$schema": "https://json.schemastore.org/package", "author": "ndonfris", "license": "MIT", "name": "fish-lsp", "version": "1.1.3", "description": "LSP implementation for fish/fish-shell", "keywords": [ "lsp", "fish", "fish-shell", "language-server-protocol", "language-server" ], "type": "commonjs", "homepage": "https://fish-lsp.dev", "repository": { "type": "git", "url": "git+https://github.com/ndonfris/fish-lsp.git" }, "bugs": { "url": "https://github.com/ndonfris/fish-lsp/issues" }, "funding": { "url": "https://github.com/ndonfris", "type": "github" }, "engines": { "node": ">=20.0.0" }, "files": [ "dist/fish-lsp", "dist/fish-lsp.d.ts", "package.json", "man/fish-lsp.1", "README.md", "LICENSE.md" ], "main": "./dist/fish-lsp", "typings": "./dist/fish-lsp.d.ts", "browser": "./dist/fish-lsp", "exports": { ".": { "types": "./dist/fish-lsp.d.ts", "import": "./dist/fish-lsp", "require": "./dist/fish-lsp" }, "./server": { "types": "./dist/fish-lsp.d.ts", "import": "./dist/fish-lsp", "require": "./dist/fish-lsp" }, "./web": { "types": "./dist/fish-lsp.d.ts", "import": "./dist/fish-lsp", "require": "./dist/fish-lsp" } }, "bin": { "fish-lsp": "dist/fish-lsp" }, "man": "man/fish-lsp.1", "scripts": { "prepare": "husky", "prepack:pack": "run-s --continue-on-error clean:build lint:check update-changelog generate:man generate:commands build:npm build:types sh:build-completions", "package": "yarn pack --filename fish-lsp.tgz", "build": "run-s -sn sh:build-time build:all sh:relink sh:build-completions", "build:watch": "run-s watch", "build:npm": "tsx scripts/esbuild/index.ts --npm", "build:types": "tsx scripts/esbuild/index.ts --types", "build:all": "tsx scripts/esbuild/index.ts --all", "dev": "tsx scripts/esbuild/index.ts", "watch": "tsx scripts/esbuild/index.ts --watch-all", "sh:build-completions": "fish ./scripts/build-completions.fish", "sh:build-time": "node ./scripts/build-time", "sh:relink": "fish ./scripts/relink-locally.fish", "sh:build-assets": "fish ./scripts/build-assets.fish", "sh:dev:complete:install": "fish ./scripts/dev-complete.fish --install", "sh:dev:complete:uninstall": "fish ./scripts/dev-complete.fish --uninstall", "sh:workspace-cli": "tsx ./scripts/workspace-cli.ts", "rm": "rimraf", "clean": "rimraf out dist lib man bin node_modules *.tgz .tsbuildinfo coverage .bun", "clean:all": "rimraf out lib dist bin .tsbuildinfo node_modules tree-sitter-fish.wasm logs.txt coverage .bun", "clean:build": "rimraf out lib dist bin .tsbuildinfo", "clean:packs": "rimraf *.tgz .tsbuildinfo", "clean:dev-completions": "fish ./scripts/dev-complete.fish --uninstall", "test": "env -i HOME=$HOME PATH=$PATH NODE_ENV=test USER=test_user vitest", "test:run": "env -i HOME=$HOME PATH=$PATH NODE_ENV=test USER=test_user vitest --run", "test:coverage": "env -i HOME=$HOME PATH=$PATH NODE_ENV=test USER=test_user vitest --coverage", "test:coverage:ui": "env -i HOME=$HOME PATH=$PATH NODE_ENV=test USER=test_user vitest --ui --open --coverage", "test:coverage:run": "env -i HOME=$HOME PATH=$PATH NODE_ENV=test USER=test_user vitest --coverage --run", "publish-nightly": "fish ./scripts/publish-nightly.fish", "refactor": "knip", "lint:check": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "lint:check-fix": "eslint . --ext .ts --fix-dry-run", "update:prerelease": "run-s lint:fix update-changelog generate:man update-codeblocks-in-docs", "update-codeblocks-in-docs": "tsx scripts/update-codeblocks-in-docs.ts", "update-changelog": "fish scripts/update-changelog.fish", "util:update-changelog": "conventional-changelog -i docs/CHANGELOG.md --same-file", "util:update-changelog:dry": "conventional-changelog -i docs/CHANGELOG.md --stdout", "util:update-changelog:dry:diff": "conventional-changelog -i docs/CHANGELOG.md --stdout | diff --color=always --unified docs/CHANGELOG.md -", "all-contributors": "npx -s -y all-contributors-cli -c .all-contributorsrc", "generate:commands": "tsx ./scripts/fish-commands-scrapper.ts --write-to-snippets || true", "generate:commands:check": "tsx ./scripts/fish-commands-scrapper.ts", "generate:snippets": "tsx ./scripts/fish-commands-scrapper.ts", "create:man:dir": "mkdir -p ./man", "generate:man": "run-s create:man:dir generate:man:actual", "generate:man:cat": "npx marked-man --date \"$(date)\" --manual fish-lsp --section 1 -i ./docs/MAN_FILE.md -o ./man/fish-lsp.1 2>/dev/null", "generate:man:actual": "yarn run --silent generate:man:cat > ./man/fish-lsp.1", "generate:man:diff": "yarn run --silent generate:man:cat | diff --color=always --unified ./man/fish-lsp.1 - && echo 'NO CHANGES TO man/fish-lsp.1' || echo 'CHANGES IN man/fish-lsp.1'", "generate:man:cp": "cp ./man/fish-lsp.1 ~/.local/share/man/man1/fish-lsp.1", "generate:man:write-global": "run-s generate:man generate:man:cp" }, "lint-staged": { "**/*.ts": [ "eslint --fix" ] }, "eslintIgnore": [ "!.eslintrc.cjs" ], "contributes": { "commands": [ { "command": "fish-lsp.executeRange", "title": "execute the range" }, { "command": "fish-lsp.executeLine", "title": "execute the line" }, { "command": "fish-lsp.executeBuffer", "title": "execute the buffer" }, { "command": "fish-lsp.execute", "title": "execute the buffer" }, { "command": "fish-lsp.createTheme", "title": "create a new theme" }, { "command": "fish-lsp.showStatusDocs", "title": "show the status documentation" }, { "command": "fish-lsp.showWorkspaceMessage", "title": "show the workspace message" }, { "command": "fish-lsp.updateWorkspace", "title": "update the workspace" }, { "command": "fish-lsp.fixAll", "title": "execute all quick-fixes in file" }, { "command": "fish-lsp.toggleSingleWorkspaceSupport", "title": "enable/disable single workspace support" }, { "command": "fish-lsp.generateEnvVariables", "title": "output the $fish_lsp_* environment variables" }, { "command": "fish-lsp.showReferences", "title": "show references" }, { "command": "fish-lsp.showInfo", "title": "show server info" } ] }, "dependencies": { "@esdmr/tree-sitter-fish": "^3.6.0", "chalk": "^5.5.0", "commander": "^12.0.0", "deepmerge": "^4.3.1", "esbuild-wasm": "0.25.9", "fast-glob": "^3.3.2", "fs-extra": "^11.3.0", "husky": "^9.0.11", "memfs": "^4.38.1", "npm-run-all": "^4.1.5", "source-map-support": "^0.5.21", "unionfs": "^4.6.0", "vscode-languageserver": "^9.0.1", "vscode-languageserver-protocol": "^3.17.5", "vscode-languageserver-textdocument": "^1.0.12", "vscode-uri": "^3.0.8", "web-tree-sitter": "^0.23.0", "zod": "^3.23.6" }, "devDependencies": { "@commitlint/cli": "^19.6.0", "@commitlint/config-conventional": "^19.6.0", "@esbuild-plugins/node-globals-polyfill": "^0.2.3", "@tsconfig/node-ts": "^23.6.1", "@tsconfig/node22": "^22.0.2", "@types/chokidar": "^2.1.7", "@types/eslint": "^9.6.1", "@types/fs-extra": "^11.0.4", "@types/jsdom": "^21.1.7", "@types/node": "^24.2.0", "@types/node-fetch": "^2.6.12", "@typescript-eslint/eslint-plugin": "^7.0.1", "@typescript-eslint/parser": "^7.4.0", "@vitest/coverage-v8": "3.2.4", "@vitest/ui": "^3.2.4", "chokidar": "^4.0.3", "conventional-changelog": "^7.1.1", "dts-bundle-generator": "^9.5.1", "esbuild": "^0.25.8", "esbuild-plugin-polyfill-node": "^0.3.0", "esbuild-plugin-tsc": "^0.5.0", "esbuild-plugins-node-modules-polyfill": "^1.7.1", "eslint": "^8.0.1", "eslint-plugin-import": "^2.25.2", "eslint-plugin-n": "^15.0.0", "eslint-plugin-promise": "^6.0.0", "fast-check": "^4.3.0", "jsdom": "^26.1.0", "knip": "^5.7.0", "lint-staged": "^15.2.7", "marked-man": "^1.3.5", "node-fetch": "^3.3.2", "pinst": "^3.0.0", "rimraf": "^6.1.2", "tsx": "^4.19.3", "typescript": "^5.8.3", "vite": "^7.1.3", "vite-plugin-wasm": "^3.5.0", "vite-tsconfig-paths": "^5.1.4", "vitest": "^3.2.4" }, "peerDependencies": { "glob": "11.1.0" } }