feat(plugins): small clean up

This commit is contained in:
Matt Leong 2021-11-07 12:59:26 -08:00
parent fab75c9f32
commit 0e578c1d03

View file

@ -118,6 +118,7 @@ return packer.startup(function()
use({ use({
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
event = 'InsertEnter', event = 'InsertEnter',
disable = vim.tbl_contains(user_plugins.disable, 'autocomplete'),
}) })
-- autocompletion -- autocompletion
@ -132,7 +133,6 @@ return packer.startup(function()
{ 'hrsh7th/cmp-nvim-lua', after = 'cmp-buffer' }, { 'hrsh7th/cmp-nvim-lua', after = 'cmp-buffer' },
{ 'hrsh7th/cmp-path', after = 'cmp-nvim-lua' }, { 'hrsh7th/cmp-path', after = 'cmp-nvim-lua' },
}, },
disable = vim.tbl_contains(user_plugins.disable, 'autocomplete'),
after = 'LuaSnip', after = 'LuaSnip',
}) })
@ -142,7 +142,6 @@ return packer.startup(function()
require('cosmic.lsp.autocomplete').autopairs() require('cosmic.lsp.autocomplete').autopairs()
end, end,
after = 'nvim-cmp', after = 'nvim-cmp',
disable = vim.tbl_contains(user_plugins.disable, 'autocomplete'),
}) })
-- git commands -- git commands