Skip to content

Commit e047b63

Browse files
authored
fix: fix keybinds example in README (#32)
1 parent 03f6c40 commit e047b63

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ vim.keymap.set('n', '<leader>re', api.edit, {})
146146
local builtin = require("telescope.builtin")
147147
local connections = require("remote-sshfs.connections")
148148
vim.keymap.set("n", "<leader>ff", function()
149-
if connections.is_connected then
149+
if connections.is_connected() then
150150
api.find_files()
151151
else
152152
builtin.find_files()
153153
end
154154
end, {})
155155
vim.keymap.set("n", "<leader>fg", function()
156-
if connections.is_connected then
156+
if connections.is_connected() then
157157
api.live_grep()
158158
else
159159
builtin.live_grep()

lua/telescope/_extensions/remote-sshfs.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ local function find_files(opts)
156156
end
157157

158158
-- Setup
159+
opts = opts or {}
159160
local mount_point = opts.mount_point or connections.get_current_mount_point()
160161
local current_host = connections.get_current_host()
161162

@@ -349,6 +350,7 @@ local function live_grep(opts)
349350
end
350351

351352
-- Setup
353+
opts = opts or {}
352354
local current_host = connections.get_current_host()
353355
local mount_point = opts.mount_point or connections.get_current_mount_point()
354356
local vimgrep_arguments = {

0 commit comments

Comments
 (0)