mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: DBUI config example
This commit is contained in:
parent
27f4a6016d
commit
ba64a3073c
6 changed files with 70 additions and 5 deletions
1
db_ui/connections.json
Normal file
1
db_ui/connections.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"url": "mysql://root@127.0.0.1/example", "name": "example"}]
|
|
@ -11,8 +11,9 @@
|
|||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"code_runner.nvim": { "branch": "main", "commit": "6c5bfe44a6c7523350cd706e6b3b8101166eed99" },
|
||||
"codeium.nvim": { "branch": "main", "commit": "d3b88eb3aa1de6da33d325c196b8a41da2bcc825" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "8d8bddb8814c3e7e62d80dda65a9876f97eb699c" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "e11b09bf10706bb74e16e4c3d11b2274d62e687f" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "700c4a25caacbb4648c9a27972c2fe203948e0c2" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "fafe1f7c640aed75e70a10e6649612cd96f39149" },
|
||||
|
@ -36,18 +37,17 @@
|
|||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "2086e564c4d23fea714e8a6d63b881e551af2f41" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "9ebc589329083522f9594f408fc2652090b41139" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "b47dde81a0a4b9b62e9a73a71ff0df2202323dd9" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "34867c69838078df7d6919b130c0541c0b400c47" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "6eb4120a1aadef07ac312f1c4bc6456712220007" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
|
||||
"onedarkpro.nvim": { "branch": "main", "commit": "ec07364f3cfa9cc6467bf067a490cfd74011efcd" },
|
||||
"playground": { "branch": "master", "commit": "bcfab84f98a33f2ad34dda6c842046dca70aabf6" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "12b1a1e095d968887a17ef791c2edb78d7595d46" },
|
||||
"smart-splits.nvim": { "branch": "master", "commit": "66fda3a601a5b4c679656f15eb6ddd613c8d3216" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "3a743491e5c6be0ed0aa8c31c6905df8f66179ba" },
|
||||
"tiny-devicons-auto-colors.nvim": { "branch": "main", "commit": "13f9391c2bf43df5224924667bdb66cedea37484" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "f12b15e1b3a33524eb06a1ae7bc852fb1fd92197" },
|
||||
"tiny-devicons-auto-colors.nvim": { "branch": "main", "commit": "f3f136fd82eded0bd1e1870cf7dfab7e8c36801e" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "fee58a0473fd92b28c34f8f724e4918b15ba30a3" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
|
||||
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
||||
|
|
54
lua/custom/plugins/database.lua
Normal file
54
lua/custom/plugins/database.lua
Normal file
|
@ -0,0 +1,54 @@
|
|||
return {
|
||||
-- {
|
||||
-- "tpope/vim-dadbod",
|
||||
-- dependencies = {
|
||||
-- "kristijanhusak/vim-dadbod-ui",
|
||||
-- "kristijanhusak/vim-dadbod-completion",
|
||||
-- },
|
||||
-- keys = {
|
||||
-- { "<leader>du", ":DBUIToggle<cr>", desc = "Toggle DB UI" },
|
||||
-- { "<leader>db", ":DBUIFindBuffer<cr>", desc = "DB Find buffer" },
|
||||
-- {
|
||||
-- "<leader>dr",
|
||||
-- ":DBUIRenameBuffer<cr>",
|
||||
-- desc = "DB Rename buffer",
|
||||
-- },
|
||||
-- { "<leader>dl", ":DBUILastQueryInfo<cr>", desc = "DB Last query" },
|
||||
-- },
|
||||
-- config = function()
|
||||
-- local function db_completion()
|
||||
-- require("cmp").setup.buffer {
|
||||
-- sources = { { name = "vim-dadbod-completion" } },
|
||||
-- }
|
||||
-- end
|
||||
--
|
||||
-- vim.g.db_ui_save_location = vim.fn.stdpath "config" .. require("plenary.path").path.sep .. "db_ui"
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = {
|
||||
-- "sql",
|
||||
-- },
|
||||
-- command = [[setlocal omnifunc=vim_dadbod_completion#omni]],
|
||||
-- })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = {
|
||||
-- "sql",
|
||||
-- "mysql",
|
||||
-- "plsql",
|
||||
-- },
|
||||
-- callback = function()
|
||||
-- vim.schedule(db_completion)
|
||||
-- end,
|
||||
-- })
|
||||
-- end,
|
||||
-- cmd = {
|
||||
-- "DBUIToggle",
|
||||
-- "DBUI",
|
||||
-- "DBUIAddConnection",
|
||||
-- "DBUIFindBuffer",
|
||||
-- "DBUIRenameBuffer",
|
||||
-- "DBUILastQueryInfo",
|
||||
-- },
|
||||
-- },
|
||||
}
|
|
@ -81,6 +81,13 @@ return {
|
|||
text_align = "left",
|
||||
padding = 1,
|
||||
},
|
||||
{
|
||||
filetype = "dbui",
|
||||
text = "",
|
||||
highlight = "Directory",
|
||||
text_align = "left",
|
||||
padding = 1,
|
||||
},
|
||||
},
|
||||
show_buffer_icons = true,
|
||||
show_buffer_close_icons = true,
|
||||
|
|
|
@ -20,6 +20,7 @@ if (color == "dracula") and true or false then
|
|||
["@keyword"] = { fg = colors.pink, italic = true },
|
||||
["@keyword.function"] = { fg = colors.cyan, italic = true },
|
||||
["@function"] = { fg = colors.green, italic = true },
|
||||
["@tag.attribute"] = { fg = colors.green, italic = true },
|
||||
["@tag.builtin.javascript"] = { fg = colors.pink },
|
||||
["@tag.delimiter.javascript"] = { fg = colors.fg },
|
||||
["@type.javascript"] = { fg = colors.fg },
|
||||
|
|
|
@ -29,6 +29,8 @@ M.filetype = {
|
|||
"startuptime",
|
||||
"crunner",
|
||||
"lspinfo",
|
||||
"mysql",
|
||||
"dbui",
|
||||
}
|
||||
|
||||
M.rounded = function(colorscheme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue