systemd-language-server
Language server for systemd unit files. Result of an exercise to learn the language server protocol.
Supported Features
textDocument/completion
Completion for
- unit file directives
- unit file sections
textDocument/hover
Documentation for directives supplied on hovering.
For markup in hover windows (i.e. the fancy highlighting), pandoc must be found in $PATH. Otherwise, there will be fallback to plain text.
Installation
pip install systemd-language-server
Example Integrations
coc.nvim
In coc-settings.json, under .languageserver:
...
"systemd-language-server": {
"command": "systemd-language-server",
"filetypes": ["systemd"]
}
...
nvim-lspconfig
local lspconfig = require 'lspconfig'
local configs = require 'lspconfig.configs'
if not configs.systemd_ls then
configs.systemd_ls = {
default_config = {
cmd = { 'systemd-language-server' },
filetypes = { 'systemd' },
root_dir = function() return nil end,
single_file_support = true,
settings = {},
},
docs = {
description = [[
https://github.com/psacawa/systemd-language-server
Language Server for Systemd unit files.
]]
}
}
end
lspconfig.systemd_ls.setup {}
Courtesy of @ValdezFOmar
Metadata
Release files for systemd-language-server 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| systemd_language_server-0.3.5.tar.gz | 168.8 kB | Without provenance | Details for systemd_language_server-0.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| systemd_language_server-0.3.5-py3-none-any.whl | Python 3 | none | any | Details for systemd_language_server-0.3.5-py3-none-any.whl |
Total release size: 349.9 kB
Release files / systemd_language_server-0.3.5.tar.gz
| Download URL | systemd_language_server-0.3.5.tar.gz |
|---|---|
| Size | 168.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fa122be805db8dbf0a86b8618f7237ad5099586dc0b31590e9b708f45860f9c
|
|
BLAKE2b-256 checksum How to use checksums |
72384526913c9a2b314eec0deea826c0349b8790c6123c387e796c999cf25015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.9 Linux/6.5.0-1017-azure
|
Release files / systemd_language_server-0.3.5-py3-none-any.whl
| Download URL | systemd_language_server-0.3.5-py3-none-any.whl |
|---|---|
| Size | 181.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
764435c54be8a06329978d0fea03846e3e24d28120ee5bf599c232902f64985c
|
|
BLAKE2b-256 checksum How to use checksums |
34c9d5d17c268beb351f3f94b6391ef0f07ca2562ba21043a82236d1b7a86312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.9 Linux/6.5.0-1017-azure
|
Security for systemd-language-server 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.