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 a4980ff
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions lua/astrocommunity/pack/full-dadbod/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ 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,
},
},
},
},
},
},
{
"hrsh7th/nvim-cmp",
Expand All @@ -29,17 +37,15 @@ 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,
},
},
pg_file = {
event = { "BufRead", "BufNewFile" },
pattern = "*.pg",
command = "set filetype=sql",
},
},
filetypes = {
extension = { pg = "sql" },
},
},
},
Expand Down

0 comments on commit a4980ff

Please sign in to comment.