ms-jpq / coq_nvim

Fast as FUCK nvim completion. SQLite, concurrent scheduler, hundreds of hours of optimization.
GNU General Public License v3.0
3.54k stars 100 forks source link

Empty clients.snippets.warn array doesn't suppress warning #287

Closed bkesby closed 3 years ago

bkesby commented 3 years ago

Thank you very much for your work, this really is the fastest completion engine I've come across :+1:

Attempting to suppress the No compatible snippets found warning whilst lazy loading coq.artifacts unitl "InsertEnter" using packer. The following function is run before loading coq and the auto_start function works however clients.snippets.warn doesn't.

-- lua/plugins/configs/coq.lua
M.setup = function()
   vim.g.coq_settings = {
      auto_start = "shut-up",
      clients = {
         snippets = {
            warn = {},
         },
      },
}
end

Any suggestions? I imagine an empty lua array is not being registered the same as in vimscript?

packer use:

-- lua/plugins/init.lua
use {
   "ms-jpq/coq-nvim",
   branch = "coq",
   event = "VimEnter",
   setup = function()
      require("plugins.configs.coq").setup()
   end,
}
ms-jpq commented 3 years ago

LOL, how did i miss this, I only added an option to configure warn outdated, but forgot to add a toggle for warn missing.

guess since I always had snippets installed I never realized !

bkesby commented 3 years ago

Glad I could help spot it for you

ms-jpq commented 3 years ago

https://github.com/ms-jpq/coq_nvim/pull/290