-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
29 lines (26 loc) · 1.21 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- Plugin configuration with defaults.
local M = {}
---@class nvtmux.Config
---@field colorscheme string? Optional colour scheme override. I find this useful as I prefer a light theme while editing and a dark theme for terminals.
---@field leader string A leader key is used for many key binds to avoid conflicting with nested vim instances. Tmux uses a similar approach with its default being CTRL-B.
---@field ssh.auto_reconnect boolean Automatically prompt to reconnect disconnected sessions
---@field ssh.auto_rename_tab boolean Automatically rename the current tab to the SSH connection name
---@field ssh.password_detection table? Attempt to detect SSH authentication requests. Passwords will be cached and reused for future connections.
---@field ssh.password_detection.enabled boolean Enable SSH authentication request detection.
---@field ssh.password_detection.patterns string[] Lua patterns used to detect an SSH authentication request
M.config = {
colorscheme = nil,
leader = '<C-space>',
ssh = {
auto_reconnect = true,
auto_rename_tab = true,
password_detection = {
enabled = true,
patterns = {
'password:$',
'^Enter passphrase for key.*:$'
},
}
}
}
return M.config