diff options
Diffstat (limited to 'runtime/lua/provider/clipboard/health.lua')
-rw-r--r-- | runtime/lua/provider/clipboard/health.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/lua/provider/clipboard/health.lua b/runtime/lua/provider/clipboard/health.lua index dc33cb0ab0..e44f7d32cc 100644 --- a/runtime/lua/provider/clipboard/health.lua +++ b/runtime/lua/provider/clipboard/health.lua @@ -1,5 +1,4 @@ local health = vim.health -local executable = health.executable local M = {} @@ -8,8 +7,8 @@ function M.check() if os.getenv('TMUX') - and executable('tmux') - and executable('pbpaste') + and vim.fn.executable('tmux') == 1 + and vim.fn.executable('pbpaste') == 1 and not health.cmd_ok('pbpaste') then local tmux_version = string.match(vim.fn.system('tmux -V'), '%d+%.%d+') |