From e95be8f86d2fcfc0328345eae79187ae05d8b4a0 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Mon, 28 Feb 2022 20:14:36 +0100 Subject: update plugins, not fold db results --- after/plugin/dbui.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'after/plugin/dbui.lua') 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', 'db', function () - vim.cmd('tabnew') - vim.cmd("DBUI") -end, {}) +vim.keymap.set('n', 'db', ':tab DBUI', {}) -- just close the tab, but context related of the keybinding vim.keymap.set('n', 'tq', ':tabclose') -- cgit v1.2.3