diff options
author | opalmay <[email protected]> | 2023-01-13 12:22:52 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-13 12:22:52 +0200 |
commit | 8cc1cc62060db22e2d7bee98302e5e99f8a2ef3c (patch) | |
tree | 5e195df8ce113dd9234aad05ecc660e62bd29cf4 /lua/lvim/plugins.lua | |
parent | f4ec3fc6200cbc160bc0498c4ba63626cd030314 (diff) |
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
Diffstat (limited to 'lua/lvim/plugins.lua')
-rw-r--r-- | lua/lvim/plugins.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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,6 +52,7 @@ local core_plugins = { "cmp_luasnip", "cmp-buffer", "cmp-path", + "cmp-cmdline", }, }, { "hrsh7th/cmp-nvim-lsp", lazy = true }, @@ -59,6 +60,11 @@ local core_plugins = { { "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() local utils = require "lvim.utils" |