Skip to content

Commit 711efc3

Browse files
jay-babumehalter
andauthored
feat(full-dadbod): Improve lazy loading (#1246)
* feat(pack): lazier load full-dadbod also, have dadbod use nerd fonts. be case insensitive add pg to completion which is a file type used for sql tests * --wip-- * improve spec --------- Co-authored-by: Micah Halter <[email protected]>
1 parent af0f425 commit 711efc3

File tree

1 file changed

+21
-1
lines changed
  • lua/astrocommunity/pack/full-dadbod

1 file changed

+21
-1
lines changed

lua/astrocommunity/pack/full-dadbod/init.lua

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,24 @@ return {
44
{
55
"kristijanhusak/vim-dadbod-ui",
66
dependencies = { "tpope/vim-dadbod" },
7-
event = "VeryLazy",
7+
cmd = {
8+
"DBUI",
9+
"DBUIToggle",
10+
"DBUIAddConnection",
11+
"DBUIFindBuffer",
12+
},
13+
specs = {
14+
{
15+
"AstroNvim/astrocore",
16+
opts = {
17+
options = {
18+
g = {
19+
db_use_nerd_fonts = vim.g.icons_enabled and 1 or nil,
20+
},
21+
},
22+
},
23+
},
24+
},
825
},
926
{
1027
"hrsh7th/nvim-cmp",
@@ -27,6 +44,9 @@ return {
2744
},
2845
},
2946
},
47+
filetypes = {
48+
extension = { pg = "sql" },
49+
},
3050
},
3151
},
3252
},

0 commit comments

Comments
 (0)