From 8cc1cc62060db22e2d7bee98302e5e99f8a2ef3c Mon Sep 17 00:00:00 2001 From: opalmay <65673442+opalmay@users.noreply.github.com> Date: Fri, 13 Jan 2023 12:22:52 +0200 Subject: 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 --- lua/lvim/plugins.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index 041e5fe0..50d203b3 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -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() -- cgit v1.2.3