diff options
| author | moxie <moxie@3kgcat.fi> | 2026-03-16 02:59:48 +0200 |
|---|---|---|
| committer | moxie <moxie@3kgcat.fi> | 2026-03-16 02:59:48 +0200 |
| commit | 0d5557b5185916913f08215eb7d987d25d3e09e0 (patch) | |
| tree | edc1177c667d85c4c8be3026a44070dc7fce947d /lua | |
| parent | c566653a645c8317f336043117766745304b7887 (diff) | |
feat: add xdg-open dependency check
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/muwiki/health.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/muwiki/health.lua b/lua/muwiki/health.lua index fc1c9db..118c1fe 100644 --- a/lua/muwiki/health.lua +++ b/lua/muwiki/health.lua @@ -43,6 +43,16 @@ M.check = function() vim.health.info('Install with: :TSInstall markdown_inline') vim.health.info('Link detection requires both parsers') end + + vim.health.start('External Dependencies') + + if vim.fn.executable('xdg-open') == 1 then + vim.health.ok('xdg-open is installed') + else + vim.health.warn('xdg-open is not installed') + vim.health.info('xdg-open is required for web and file links') + vim.health.info('Alternative: Configure custom handlers - see :help muwiki-autocmd-open-custom') + end end return M |
