From ff62d6fda081d390b6a93c7045823d6e18c41fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Wed, 8 Nov 2023 08:42:54 +0100 Subject: [PATCH] feat: rpmspec 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 diff --git a/lua/lspconfig/configs/rpmspec.lua b/lua/lspconfig/configs/rpmspec.lua new file mode 100644 index 0000000000..c9fcb7dd55 --- /dev/null +++ b/lua/lspconfig/configs/rpmspec.lua @@ -0,0 +1,18 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'python3', '-mrpm_lsp_server', '--stdio' }, + filetypes = { 'spec' }, + single_file_support = true, + root_dir = vim.fs.dirname(vim.fs.find('.git', { path = startpath, upward = true })[1]), + settings = {}, + }, + docs = { + description = [[ +https://github.com/dcermak/rpm-spec-language-server + +Language server protocol (LSP) support for RPM Spec files. +]], + }, +}