summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins/remote_sshfs.lua
diff options
context:
space:
mode:
authorAotrix <[email protected]>2025-11-23 04:02:39 +0100
committerAotrix <[email protected]>2025-11-23 04:02:39 +0100
commit3502d53434e9e013b71a202a860f37ac4928db8f (patch)
treeecbd3fcd815a10552a4a43173e0031f1cfa1d47c /lua/aotrix/plugins/remote_sshfs.lua
parentdf704bf10eac7344ce3320c9c8995af3e5b47637 (diff)
fixed symlink issue
Diffstat (limited to 'lua/aotrix/plugins/remote_sshfs.lua')
-rw-r--r--lua/aotrix/plugins/remote_sshfs.lua17
1 files changed, 15 insertions, 2 deletions
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"
+ },
+ },
},
}