summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-19 18:34:13 +0900
commit307fceea38b7352a79b0bdb87025a34b76973867 (patch)
tree382eb3e6a11973bc2c6ba33eee14d43ec2a9566b /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua
parentb66f68b8c014a3041c936ee9de1b57db5bcb50fb (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua53
1 files changed, 0 insertions, 53 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua
deleted file mode 100644
index 730ebfe..0000000
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua
+++ /dev/null
@@ -1,53 +0,0 @@
-return {
- "kristijanhusak/vim-dadbod-ui",
- dependencies = {
- { "tpope/vim-dadbod", lazy = true },
- { "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql" }, lazy = true },
- },
- cmd = {
- "DBUI",
- "DBUIToggle",
- "DBUIAddConnection",
- "DBUIFindBuffer",
- },
- init = function()
- -- Your DBUI configuration
- vim.g.db_ui_use_nerd_fonts = 1
- local home = vim.fn.expand("~")
- vim.g.dbs = {
- firefox = "sqlite://" .. home .. "/.mozilla/firefox/si.default/places.sqlite",
- mysql = "mariadb://user:password@localhost/mysql",
- postsql = "postgresql://postgres:mypassword@localhost:5432/postgresql",
- qutebrowser = "sqlite://" .. home .. "/.local/share/qutebrowser/history.sqlite",
- sqlite = "sqlite://" .. home .. "/.local/share/db/sqlite.db",
- }
- local wk = require("which-key")
- wk.add({
- mode = { "n" },
- { "<localleader>d", group = "DB" },
- })
- end,
- config = function()
- local function db_completion()
- require("cmp").setup.buffer({ sources = { { name = "vim-dadbod-completion" } } })
- end
- vim.api.nvim_create_autocmd("FileType", {
- pattern = {
- "sql",
- "mysql",
- "plsql",
- },
- callback = function()
- vim.schedule(db_completion)
- end,
- })
- end,
- keys = {
- { "<localleader>du", "<cmd>DBUI<cr>", desc = "DB UI" },
- { "<localleader>dt", "<cmd>DBUIToggle<cr>", desc = "Toggle DB UI" },
- { "<localleader>da", "<cmd>DBUIAddConnection<cr>", desc = "Add connection" },
- { "<localleader>df", "<cmd>DBUIFindBuffer<cr>", desc = "Find buffer" },
- { "<localleader>dr", "<cmd>DBUIRenameBuffer<cr>", desc = "Rename buffer" },
- { "<localleader>di", "<cmd>DBUILastQueryInfo<cr>", desc = "Last query info" },
- },
-}