summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins
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
parentdf704bf10eac7344ce3320c9c8995af3e5b47637 (diff)
fixed symlink issue
Diffstat (limited to 'lua/aotrix/plugins')
-rw-r--r--lua/aotrix/plugins/remote_sshfs.lua17
-rw-r--r--lua/aotrix/plugins/treesitter.lua2
2 files changed, 16 insertions, 3 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"
+ },
+ },
},
}
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,