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 +++++++++++++++-- lua/aotrix/plugins/treesitter.lua | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'lua/aotrix/plugins') 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" + }, + }, }, } diff --git a/lua/aotrix/plugins/treesitter.lua b/lua/aotrix/plugins/treesitter.lua index aa3bbdd..3f6a7b5 100644 --- a/lua/aotrix/plugins/treesitter.lua +++ b/lua/aotrix/plugins/treesitter.lua @@ -7,7 +7,7 @@ return config = function() require 'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" (the listed parsers MUST always be installed) - ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline" }, + ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline", "html", "css" }, -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = false, -- cgit v1.2.3