add: config for database management

This commit is contained in:
asep.komarudin 2024-06-12 18:38:25 +07:00
parent 17f2ffe48b
commit 9dbcd4b755
9 changed files with 218 additions and 82 deletions

View file

@ -282,6 +282,29 @@ if vim.g.pcode_codeium then
table.insert(M.mappings, { ["c"] = { ":call codeium#Chat()<cr>", "󰭹 Codeium Chat" } })
end
if vim.g.pcode_database then
table.insert(M.mappings, {
["D"] = {
name = " 󰆼 DBUI",
d = { "<cmd>NvimTreeClose<cr><cmd>tabnew<cr><bar><bar><cmd>DBUI<cr>", "󰆼 DBUI Toggle" },
q = {
"<cmd>DBUIClose<cr><cmd>BufferLineCloseOthers<cr><cmd>bd!<cr><cmd>lua require('user.utils.bufferline').bufremove()<cr><cmd>Alpha<cr>",
"󰅙 DBUI Close",
},
},
})
-- table.insert(
-- M.mappings,
-- { ["D"] = { "<cmd>NvimTreeClose<cr><cmd>tabnew<cr><bar><bar><cmd>DBUI<cr>", "󰆼 DBUI Toggle" } }
-- )
-- table.insert(M.mappings, {
-- ["x"] = {
-- "<cmd>DBUIClose<cr><cmd>lua require('user.utils.bufferline').bufremove()<cr><cmd>Alpha<cr>",
-- "󰆼 DBUI Toggle",
-- },
-- })
end
M.mappings2 = {
["/"] = { "<esc><cmd>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<cr>", " 󰆈 Commet Block" },
}