Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
systemd-language-server
Advanced tools
Language server for systemd unit files. Result of an exercise to learn the language server protocol.
textDocument/completion
Completion for
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.
pip install systemd-language-server
In coc-settings.json
, under .languageserver
:
...
"systemd-language-server": {
"command": "systemd-language-server",
"filetypes": ["systemd"]
}
...
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
FAQs
Language server for systemd unit files
We found that systemd-language-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.