aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-02-28 20:14:36 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-02-28 20:14:36 +0100
commite95be8f86d2fcfc0328345eae79187ae05d8b4a0 (patch)
tree30df068b9d492a0f9ef0091e5e311b677ec5fae6 /after/plugin
parenta0a6471b431a43339a76b1a2745c4341c3ce1abd (diff)
downloadnvim-conf-e95be8f86d2fcfc0328345eae79187ae05d8b4a0.tar.gz
nvim-conf-e95be8f86d2fcfc0328345eae79187ae05d8b4a0.zip
update plugins, not fold db results
Diffstat (limited to 'after/plugin')
-rw-r--r--after/plugin/dbui.lua13
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>')