feat(nvim): add dadbod SSH support and SSH port range config
This commit is contained in:
@@ -3,6 +3,7 @@ return {
|
||||
dependencies = {
|
||||
{ 'tpope/vim-dadbod', lazy = true },
|
||||
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql' }, lazy = true },
|
||||
{ 'pbogut/vim-dadbod-ssh' },
|
||||
},
|
||||
cmd = {
|
||||
'DBUI',
|
||||
@@ -11,7 +12,12 @@ return {
|
||||
'DBUIFindBuffer',
|
||||
},
|
||||
init = function()
|
||||
-- Your DBUI configuration
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user