fix(sql): better nvim-cmp check. Closes #5188

This commit is contained in:
Folke Lemaitre 2025-01-20 20:32:17 +01:00
parent c7a7ab5112
commit 1e83b4f843
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -48,7 +48,7 @@ return {
vim.api.nvim_create_autocmd("FileType", {
pattern = sql_ft,
callback = function()
if LazyVim.has("nvim-cmp") then
if LazyVim.cmp_engine() == "nvim-cmp" then
local cmp = require("cmp")
-- global sources