feat(nvim): add dadbod SSH support and SSH port range config

This commit is contained in:
Oliver
2026-03-13 15:11:06 +01:00
parent 077ca58813
commit 3e8fbea56c

View File

@@ -3,6 +3,7 @@ return {
dependencies = { dependencies = {
{ 'tpope/vim-dadbod', lazy = true }, { 'tpope/vim-dadbod', lazy = true },
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql' }, lazy = true }, { 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql' }, lazy = true },
{ 'pbogut/vim-dadbod-ssh' },
}, },
cmd = { cmd = {
'DBUI', 'DBUI',
@@ -11,7 +12,12 @@ return {
'DBUIFindBuffer', 'DBUIFindBuffer',
}, },
init = function() init = function()
-- Your DBUI configuration
vim.g.db_ui_use_nerd_fonts = 1 vim.g.db_ui_use_nerd_fonts = 1
-- Configure SSH port range to avoid Redis ports (7001-7003, 8001-8003, 9001-9002)
vim.g.db_adapter_ssh_port_range = vim.fn.extend(
vim.fn.range(7010, 7099),
vim.fn.range(8010, 8099)
)
end end
} }