Skip to content

Commit 62e1768

Browse files
authored
fix(remote-sshfs-nvim): use function call result (#1208)
1 parent bc99921 commit 62e1768

File tree

1 file changed

+2
-2
lines changed
  • lua/astrocommunity/remote-development/remote-sshfs-nvim

1 file changed

+2
-2
lines changed

lua/astrocommunity/remote-development/remote-sshfs-nvim/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ return {
2828
if type(find_files) == "table" then
2929
local orig_find_files = find_files[1]
3030
find_files[1] = function()
31-
if require("remote-sshfs.connections").is_connected then
31+
if require("remote-sshfs.connections").is_connected() then
3232
require("remote-sshfs.api").find_files()
3333
elseif type(orig_find_files) == "function" then
3434
orig_find_files()
@@ -41,7 +41,7 @@ return {
4141
if type(live_grep) == "table" then
4242
local orig_live_grep = live_grep[1]
4343
live_grep[1] = function()
44-
if require("remote-sshfs.connections").is_connected then
44+
if require("remote-sshfs.connections").is_connected() then
4545
require("remote-sshfs.api").live_grep()
4646
elseif type(orig_live_grep) == "function" then
4747
orig_live_grep()

0 commit comments

Comments
 (0)