From a25c9cfb63335a70b2709e0dfe098c62ad8ae0b9 Mon Sep 17 00:00:00 2001 From: Dmitriy Tikhomirov Date: Sat, 14 Sep 2024 00:26:40 +0300 Subject: [PATCH] fix(remote-sshfs-nvim): use function call result --- .../remote-development/remote-sshfs-nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/remote-development/remote-sshfs-nvim/init.lua b/lua/astrocommunity/remote-development/remote-sshfs-nvim/init.lua index a666d768e..e0f21db24 100644 --- a/lua/astrocommunity/remote-development/remote-sshfs-nvim/init.lua +++ b/lua/astrocommunity/remote-development/remote-sshfs-nvim/init.lua @@ -28,7 +28,7 @@ return { if type(find_files) == "table" then local orig_find_files = find_files[1] find_files[1] = function() - if require("remote-sshfs.connections").is_connected then + if require("remote-sshfs.connections").is_connected() then require("remote-sshfs.api").find_files() elseif type(orig_find_files) == "function" then orig_find_files() @@ -41,7 +41,7 @@ return { if type(live_grep) == "table" then local orig_live_grep = live_grep[1] live_grep[1] = function() - if require("remote-sshfs.connections").is_connected then + if require("remote-sshfs.connections").is_connected() then require("remote-sshfs.api").live_grep() elseif type(orig_live_grep) == "function" then orig_live_grep()