Skip to content

Commit

Permalink
improve spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Oct 23, 2024
1 parent 3c8ae9b commit cf3d54d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions lua/astrocommunity/pack/full-dadbod/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ return {
"DBUIAddConnection",
"DBUIFindBuffer",
},
init = function()
vim.g.db_ui_use_nerd_fonts = 1
vim.g.completion_matching_ignore_case = 1
end,
specs = {
{
"AstroNvim/astrocore",
opts = {
options = {
g = {
db_use_nerd_fonts = vim.g.icons_enabled and 1 or nil,
completion_matching_ignore_case = 1,
},
},
},
},
},
},
{
"hrsh7th/nvim-cmp",
Expand All @@ -29,7 +38,7 @@ return {
{
event = "FileType",
desc = "dadbod completion",
pattern = { "sql", "mysql", "plsql", "pg" },
pattern = { "sql", "mysql", "plsql" },
callback = function()
require("cmp").setup.buffer { sources = { { name = "vim-dadbod-completion" } } }
end,
Expand All @@ -41,6 +50,9 @@ return {
command = "set filetype=sql",
},
},
filetypes = {
extension = { pg = "sql" },
},
},
},
},
Expand Down

0 comments on commit cf3d54d

Please sign in to comment.