feat(plugins): even more perf yo

This commit is contained in:
Matt Leong 2021-11-05 21:51:07 -07:00
parent 0270f32e03
commit 16cfc46795

View file

@ -94,16 +94,29 @@ return packer.startup(function()
disable = vim.tbl_contains(user_plugins.disable, 'nvim-tree'), disable = vim.tbl_contains(user_plugins.disable, 'nvim-tree'),
}) })
use({ -- lsp use({
'williamboman/nvim-lsp-installer',
requires = {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
'jose-elias-alvarez/nvim-lsp-ts-utils', requires = {
'ray-x/lsp_signature.nvim', {
'hrsh7th/cmp-nvim-lsp',
after = 'nvim-lspconfig',
}, },
{
'jose-elias-alvarez/nvim-lsp-ts-utils',
after = 'cmp-nvim-lsp',
},
{
'ray-x/lsp_signature.nvim',
after = 'nvim-lsp-ts-utils',
},
{
'williamboman/nvim-lsp-installer',
after = 'lsp_signature.nvim',
config = function() config = function()
require('cosmic.lsp') require('cosmic.lsp')
end, end,
},
},
event = 'BufReadPre', event = 'BufReadPre',
}) })
@ -120,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' },
{ 'onsails/lspkind-nvim', after = 'cmp-path' }, { 'onsails/lspkind-nvim', after = 'cmp-path' },
{ 'hrsh7th/cmp-nvim-lsp' },
}, },
event = 'InsertEnter', event = 'InsertEnter',
disable = vim.tbl_contains(user_plugins.disable, 'autocomplete'), disable = vim.tbl_contains(user_plugins.disable, 'autocomplete'),