diff options
Diffstat (limited to 'lua/aotrix/plugins/remote_sshfs.lua')
| -rw-r--r-- | lua/aotrix/plugins/remote_sshfs.lua | 17 |
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" + }, + }, }, } |
