From 3502d53434e9e013b71a202a860f37ac4928db8f Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Sun, 23 Nov 2025 04:02:39 +0100 Subject: fixed symlink issue --- lua/aotrix/plugins/remote_sshfs.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'lua/aotrix/plugins/remote_sshfs.lua') diff --git a/lua/aotrix/plugins/remote_sshfs.lua b/lua/aotrix/plugins/remote_sshfs.lua index 6aece57..8be0d5a 100644 --- a/lua/aotrix/plugins/remote_sshfs.lua +++ b/lua/aotrix/plugins/remote_sshfs.lua @@ -2,7 +2,20 @@ return { "nosduco/remote-sshfs.nvim", dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, opts = { - -- Refer to the configuration section below - -- or leave empty for defaults + connections = { + ssh_configs = { -- which ssh configs to parse for hosts list + vim.fn.expand "$HOME" .. "/.ssh/config", + "/etc/ssh/ssh_config", + -- "/path/to/custom/ssh_config" + }, + ssh_known_hosts = vim.fn.expand "$HOME" .. "/.ssh/known_hosts", + -- NOTE: Can define ssh_configs similarly to include all configs in a folder + -- ssh_configs = vim.split(vim.fn.globpath(vim.fn.expand "$HOME" .. "/.ssh/configs", "*"), "\n") + sshfs_args = { -- arguments to pass to the sshfs command + "-o reconnect", + "-o ConnectTimeout=5", + "-o follow_symlinks" + }, + }, }, } -- cgit v1.2.3