fix(sql): fix autocomplete when omni is used as a blink.cmp source

This commit is contained in:
Igor Guerrero 2025-02-19 17:11:51 -06:00
parent f3e37a1f83
commit 2709de6499
No known key found for this signature in database
GPG key ID: 9B6A448FD16FE5A9

View file

@ -28,6 +28,11 @@ end
local sql_ft = { "sql", "mysql", "plsql" } local sql_ft = { "sql", "mysql", "plsql" }
-- disable nvim default `sql_completion` plugin to be compatible with blink.cmp's omni
-- while still showing some keywords from the syntax autocomplete sources
vim.g.omni_sql_default_compl_type = "syntax"
vim.g.loaded_sql_completion = true
return { return {
recommended = function() recommended = function()
return LazyVim.extras.wants({ return LazyVim.extras.wants({