From 307fceea38b7352a79b0bdb87025a34b76973867 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:34:13 +0900 Subject: updates --- .../TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/dadbod.lua') 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" }, - { "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 = { - { "du", "DBUI", desc = "DB UI" }, - { "dt", "DBUIToggle", desc = "Toggle DB UI" }, - { "da", "DBUIAddConnection", desc = "Add connection" }, - { "df", "DBUIFindBuffer", desc = "Find buffer" }, - { "dr", "DBUIRenameBuffer", desc = "Rename buffer" }, - { "di", "DBUILastQueryInfo", desc = "Last query info" }, - }, -} -- cgit v1.2.3