From 692574e00fa855035b59a4a6e136ace804115e33 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 6 Apr 2025 02:27:38 +0200 Subject: feat: rpmspec #3568 rpm-spec-language-server is the Language Server for RPM spec files https://github.com/dcermak/rpm-spec-language-server --- lua/lspconfig/configs/rpmspec.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/lspconfig/configs/rpmspec.lua (limited to 'lua') diff --git a/lua/lspconfig/configs/rpmspec.lua b/lua/lspconfig/configs/rpmspec.lua new file mode 100644 index 00000000..dc56d041 --- /dev/null +++ b/lua/lspconfig/configs/rpmspec.lua @@ -0,0 +1,18 @@ +return { + default_config = { + cmd = { 'python3', '-mrpm_lsp_server', '--stdio' }, + filetypes = { 'spec' }, + single_file_support = true, + root_dir = function(fname) + return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + end, + settings = {}, + }, + docs = { + description = [[ +https://github.com/dcermak/rpm-spec-language-server + +Language server protocol (LSP) support for RPM Spec files. +]], + }, +} -- cgit v1.2.3-70-g09d2