소스 검색

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
opalmay 2 년 전
부모
커밋
8cc1cc6206
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      lua/lvim/plugins.lua

+ 6 - 0
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()