summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins/remote_sshfs.lua
blob: 8be0d5adb38fe3c3c8bb8f3338abae6561fdf558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
return {
    "nosduco/remote-sshfs.nvim",
    dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
    opts = {
        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"
            },
        },
    },
}