feat: cmdline config option enables cmp-cmdline plugin (#3719)

* feat: automatically enable cmp-cmdline when setting setup option

* chore: lint

* fix: workaround for installer when cmp table is nil
This commit is contained in:
opalmay 2023-01-13 12:22:52 +02:00 committed by GitHub
parent f4ec3fc620
commit 8cc1cc6206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,12 +52,18 @@ local core_plugins = {
"cmp_luasnip",
"cmp-buffer",
"cmp-path",
"cmp-cmdline",
},
},
{ "hrsh7th/cmp-nvim-lsp", lazy = true },
{ "saadparwaiz1/cmp_luasnip", lazy = true },
{ "hrsh7th/cmp-buffer", lazy = true },
{ "hrsh7th/cmp-path", lazy = true },
{
"hrsh7th/cmp-cmdline",
lazy = true,
enabled = lvim.builtin.cmp and lvim.builtin.cmp.cmdline.enable or false,
},
{
"L3MON4D3/LuaSnip",
config = function()