diff options
Diffstat (limited to 'after/plugin/dbui.lua')
| -rw-r--r-- | after/plugin/dbui.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/after/plugin/dbui.lua b/after/plugin/dbui.lua index 591c535..77c20af 100644 --- a/after/plugin/dbui.lua +++ b/after/plugin/dbui.lua @@ -1,11 +1,16 @@ vim.g.db_ui_show_database_icon = 1 vim.g.db_ui_use_nerd_fonts = 1 +vim.g.db_ui_force_echo_notifications = 1 + +vim.g.db_ui_table_helpers = { + mysql = { + Count = "select count(1) from {optional_schema}{table}", + Explain = "EXPLAIN {last_query}" + } +} -- opening it in a new tab -vim.keymap.set('n', '<leader><leader>db', function () - vim.cmd('tabnew') - vim.cmd("DBUI") -end, {}) +vim.keymap.set('n', '<leader><leader>db', ':tab DBUI<cr>', {}) -- just close the tab, but context related of the keybinding vim.keymap.set('n', '<leader><leader>tq', ':tabclose<cr>') |