From 1ccbdfad564d084f0b5398609ab3b72bbea95708 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Sun, 15 Dec 2024 01:04:45 +0100 Subject: [PATCH] feat: add systemd-language-server --- .../configs/systemd-language-server.lua | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/lspconfig/configs/systemd-language-server.lua diff --git a/lua/lspconfig/configs/systemd-language-server.lua b/lua/lspconfig/configs/systemd-language-server.lua new file mode 100644 index 0000000000..c4a8c9115b --- /dev/null +++ b/lua/lspconfig/configs/systemd-language-server.lua @@ -0,0 +1,22 @@ +return { + default_config = { + cmd = { 'systemd-language-server' }, + filetypes = { 'systemd' }, + root_dir = function(fname) + return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + end, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/psacawa/systemd-language-server + +`systemd-language-server` can be installed via `pip`: +```sh +pip install systemd-language-server +``` + +Language Server for Systemd unit files +]], + }, +}