Language server for build.sh, PKGBUILD, ebuild
Project description
termux-language-server
Language server for some specific bash scripts:
This language server only provides extra features which bash-language-server doesn't support:
- Diagnostic:
- error
- required variables
- variable type: string/array/function
- variable values
- warning
- variable order
- unsorted values
- style check
-
PKGBUILD
: by namcap
-
- error
- Document Formatting:
- sort variables
- sort values
- Document Link:
-
build.sh
: https://github.com/termux/termux-packages/tree/master/packages/package_name/build.sh -
PKGBUILD
:- ArchLinux: https://archlinux.org/packages/package_name
- Windows Msys2: https://packages.msys2.org/base/package_name
-
ebuild
: https://packages.gentoo.org/packages/package_name
-
- Hover
- Completion
- builtin variables
- package names
-
build.sh
-
PKGBUILD
: by pyalpm -
ebuild
-
- Code Action
-
PKGBUILD
- generate a template by the name of directory containing
PKGBUILD
, the templates comes from:- customized by user
- pip2pkgbuild
- cpan2aur
- gem2arch
- arch-hs
- update
.SRCINFO
bymakepkg --printsrcinfo > .SRCINFO
- update
pkgsums
byupdpkgsums
- update version by a
nvcheck.toml
to tell this program where to search new version:
- generate a template by the name of directory containing
-
[package_name]
source = "github"
github = "author_name/repo_name"
use_max_tag = true
Other features:
- pre-commit-hooks
- linter
- formatter
Screenshots
Diagnostic
Document Link
Hover
Completion
How Does It Work
For every subtype of bash, there exists one json respecting json schema specification to provide the following information:
- variable type
- variable description
- variable value enumerate
- is variable required
- ...
If you want to support more filetypes, just add a new json schema for it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for termux-language-server-0.0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f7230fd2ca48f3bacae98c880ae7f4da2bc7f6f434539075cb3b972d9e1295 |
|
MD5 | 6a4e3f00d78e9fc4ca1715eb2429691a |
|
BLAKE2b-256 | 02e590ed2860a35043206a4abf36b3c5d9bd0f528041f88eeda7cc864f80d7f4 |
Close
Hashes for termux_language_server-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c5ced241017ff3dd56b823b10f54f9c93869a9acd8540486336aaf52ef6fe93 |
|
MD5 | 114ade9b52fbcd8eef43cebff8843211 |
|
BLAKE2b-256 | af6fc2e3d36d0f7022cd0d471cf83b70383cf7d0c1538bb25a64a8441dc05855 |