Language server for systemd unit files. Result of an exercise to learn the language server protocol.
Completion for
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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4