diff options
| -rw-r--r-- | lua/lspconfig/configs/rpmspec.lua | 18 |
1 files changed, 18 insertions, 0 deletions
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. +]], + }, +} |
