aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/rpmspec.lua
blob: dc56d04168bd75dfd29ac2b79e690cde820e4ce7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.
]],
  },
}