From 826694f97c504f1b683d9c12dc9cb0ae92171215 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Tue, 1 Mar 2022 00:39:02 -0600 Subject: [PATCH] add back some autocommands for faster load time (almost unnoticable) --- lua/plugins.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 6c7eb97..b159259 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -93,19 +93,22 @@ packer.startup { -- Built-In LSP Config use { 'neovim/nvim-lspconfig', + event = 'BufRead', config = function() require'configs.lsp'.config() end } -- LSP EZ Installer use { 'williamboman/nvim-lsp-installer', - after = 'cmp-nvim-lsp', + after = { 'cmp-nvim-lsp', 'nvim-lspconfig' }, + event = 'BufRead', config = function() require'configs.lsp-installer'.config() end } -- Formatting + Linting use { 'jose-elias-alvarez/null-ls.nvim', + event = 'BufRead', config = function() require'configs.null-ls'.config() end }