aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin/dbui.lua
blob: 591c5351b8dce3ec1149e39dd4f502dfb6aefb0e (plain)
1
2
3
4
5
6
7
8
9
10
11
vim.g.db_ui_show_database_icon = 1
vim.g.db_ui_use_nerd_fonts = 1

-- opening it in a new tab
vim.keymap.set('n', '<leader><leader>db', function ()
    vim.cmd('tabnew')
    vim.cmd("DBUI")
end, {})

-- just close the tab, but context related of the keybinding
vim.keymap.set('n', '<leader><leader>tq', ':tabclose<cr>')