Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(remote-sshfs-nvim): use function call result #1208

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
Loading