summaryrefslogtreecommitdiff
path: root/lua/rclone/health.lua
blob: 5259213a0d1bc26fbe3c0faeaf9fdabdf566dc37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local health = vim.health or require('health')

local function check()
  if pcall(require, 'plenary') then
    health.report_ok('plenary installed')
  else
    health.report_error('nvim-lua/plenary.nvim missing')
  end

  if vim.fn.executable('rclone') == 1 then
    health.report_ok('rclone installed')
  else
    health.report_error('rclone (rclone.org) not installed')
  end
end

return {
  check = check
}