feat: persist working queries and show HTTP and database context

Keep Dadbod working queries under its data directory and expose native Kulala and Dadbod statusline components. No service requests or runtime validation performed during cleanup.
This commit is contained in:
kiri committed 2026-09-09 17:31:25 +02:00
1 parent 8f5d690d75
commit d81a59b9cb
2 files changed
+12 -1

No files matched your search

@@ -86,6 +86,7 @@ require("lz.n").load({
}, },
before = function() before = function()
vim.g.db_ui_execute_on_save = 0 vim.g.db_ui_execute_on_save = 0
vim.g.db_ui_tmp_query_location = vim.fn.stdpath("data") .. "/db_ui/working"
vim.g.db_ui_disable_mappings = 1 vim.g.db_ui_disable_mappings = 1
vim.g.db_ui_show_help = 0 vim.g.db_ui_show_help = 0
vim.g.dbs = { vim.g.dbs = {
@@ -43,7 +43,17 @@ require("lz.n").load({
lualine_a = { "mode" }, lualine_a = { "mode" },
lualine_b = { "branch" }, lualine_b = { "branch" },
lualine_c = { { "filename", path = 1 }, breadcrumb }, lualine_c = { { "filename", path = 1 }, breadcrumb },
lualine_x = { "diagnostics" }, lualine_x = {
{ "kulala", icon = "HTTP" },
{
"db_ui#statusline",
type = "vim_fun",
cond = function()
return vim.fn.exists("*db_ui#statusline") == 1
end,
},
"diagnostics",
},
lualine_y = { "filetype" }, lualine_y = { "filetype" },
lualine_z = { "location" }, lualine_z = { "location" },
}, },