local git_ref = 'b9d7f853da1197b83b8edb4cc4952f7ad3a42e41'
local modrev = 'scm'
local specrev = '1'

local repo_url = 'https://github.com/mhartington/formatter.nvim'

rockspec_format = '3.0'
package = 'formatter.nvim'
version = modrev ..'-'.. specrev

description = {
  summary = 'A formatter runner for Neovim.',
  detailed = '',
  labels = { 'neovim' } ,
  homepage = 'https://github.com/mhartington/formatter.nvim',
  license = 'MIT'
}

dependencies = { 'lua >= 5.1' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'formatter.nvim-' .. 'b9d7f853da1197b83b8edb4cc4952f7ad3a42e41',
}

if modrev == 'scm' or modrev == 'dev' then
  source = {
    url = repo_url:gsub('https', 'git')
  }
end

build = {
  type = 'builtin',
  copy_directories = { 'doc', 'plugin' } ,
}
