aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/provider/clipboard/health.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-04-02 12:36:13 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-04-06 16:42:26 +0200
commit9dd112dd4821a325a6c1c8d952a537f42f9c728c (patch)
tree02d59fe023762ef90c1e93c17dd602095c5195dc /runtime/lua/provider/clipboard/health.lua
parent7560aee59547c3b050c3ee9988dd0e4d36d00144 (diff)
downloadrneovim-9dd112dd4821a325a6c1c8d952a537f42f9c728c.tar.gz
rneovim-9dd112dd4821a325a6c1c8d952a537f42f9c728c.tar.bz2
rneovim-9dd112dd4821a325a6c1c8d952a537f42f9c728c.zip
refactor: remove fn_bool
It's better to use vim.fn directly instead of creating minor abstractions like fn_bool.
Diffstat (limited to 'runtime/lua/provider/clipboard/health.lua')
-rw-r--r--runtime/lua/provider/clipboard/health.lua5
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+')