From fb512d00367c982e5c248b4dd2911592783bcbb4 Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Mon, 25 Oct 2021 08:13:34 -0700 Subject: [PATCH] fix(plugins): sync and install on first run --- lua/cosmic/config/config.lua | 8 +++----- lua/cosmic/packer.lua | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/cosmic/config/config.lua b/lua/cosmic/config/config.lua index 1ac54ba..55f630a 100644 --- a/lua/cosmic/config/config.lua +++ b/lua/cosmic/config/config.lua @@ -1,13 +1,12 @@ -- Override Cosmic configuration options ---[[ -local config = {} +--[[ local config = {} config.lsp = { format_on_save = true, servers = { eslint = false, efm = { - format = false -- disable formatting all together + format = false, -- disable formatting all together disable_formatters = {}, -- e.g. 'eslint', 'prettier', 'lua' }, tsserver = { @@ -17,5 +16,4 @@ config.lsp = { } return config -]] - + ]] diff --git a/lua/cosmic/packer.lua b/lua/cosmic/packer.lua index 90c2373..e77bd81 100644 --- a/lua/cosmic/packer.lua +++ b/lua/cosmic/packer.lua @@ -24,6 +24,8 @@ if not present then if present then print('Packer cloned successfully.') + packer.sync() + packer.compile() else error("Couldn't clone packer !\nPacker path: " .. packer_path .. '\n' .. packer) end