Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
feat(lsp): added config for systemd-language-server
Browse files Browse the repository at this point in the history
  • Loading branch information
RayJameson committed Oct 11, 2024
1 parent d6becc3 commit 8ac5ba2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lua/plugins/lsp/config/systemd.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---@type LazySpec
return {
"AstroNvim/astrolsp",
cond = vim.fn.executable("systemd-language-server") == 1,
---@param opts AstroLSPOpts
opts = function(_, opts)
opts.servers = opts.servers or {}
table.insert(opts.servers, "systemd_ls")
opts.config = require("astrocore").extend_tbl(opts.config or {}, {
systemd_ls = {
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.
I tested it with python 3.10.15
3.12.7 didn't work
]],
},
},
})
end,
}

0 comments on commit 8ac5ba2

Please sign in to comment.