diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 3e2d5dc2..de84bb3d 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -137,7 +137,10 @@ return { ---@param entry cmp.Entry ---@param vim_item vim.CompletedItem format = function(entry, vim_item) + + -- vim.notify(vim.inspect(entry)) local selections = { + ["vim-dadbod-completion"] = { symbol = "󰆼 ", name = "DB", hl_group = "DadbodCompletion" }, fuzzy_buffer = { symbol = "󰱼 ", name = "Buffer", hl_group = "Buffer" }, calc = { symbol = " ", name = "Calculator", hl_group = "Calculator" }, orgmode = { symbol = " ", name = "Org", hl_group = "Orgmode" }, @@ -342,6 +345,9 @@ return { }), }) + cmp.setup.filetype("sql", { sources = standard_sources({ { name = "vim-dadbod-completion", priority = 99 } }) }) + cmp.setup.filetype("mysql", { sources = standard_sources({ { name = "vim-dadbod-completion", priority = 99 } }) }) + cmp.setup.filetype("plsql", { sources = standard_sources({ { name = "vim-dadbod-completion", priority = 99 } }) }) cmp.setup.filetype("toml", { sources = standard_sources({ { name = "crates" } }) }) cmp.setup.filetype("org", { sources = standard_sources({ { name = "orgmode", priority = 99 } }) }) diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index a203b16b..c0e5e7e3 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -107,6 +107,7 @@ return { CmpItemKindColor = { fg = colors.fujiWhite, bg = colors.waveAqua2 }, CmpItemKindTypeParameter = { fg = colors.fujiWhite, bg = colors.waveAqua2 }, CmpCustomSelectionColor = { bg = colors.sumiInk5 }, + CmpCustomSelectionDadbodCompletion = { fg = colors.fujiWhite, bg = colors.oniViolet }, CmpCustomSelectionGit = { fg = colors.fujiWhite, bg = colors.roninYellow }, CmpCustomSelectionBuffer = { fg = colors.fujiWhite, bg = colors.dragonBlue }, CmpCustomSelectionPath = { fg = colors.fujiWhite, bg = colors.autumnYellow },