fix(plugins): sync and install on first run

This commit is contained in:
Matt Leong 2021-10-25 08:13:34 -07:00
parent 6306ed7293
commit fb512d0036
2 changed files with 5 additions and 5 deletions

View file

@ -1,13 +1,12 @@
-- Override Cosmic configuration options -- Override Cosmic configuration options
--[[ --[[ local config = {}
local config = {}
config.lsp = { config.lsp = {
format_on_save = true, format_on_save = true,
servers = { servers = {
eslint = false, eslint = false,
efm = { efm = {
format = false -- disable formatting all together format = false, -- disable formatting all together
disable_formatters = {}, -- e.g. 'eslint', 'prettier', 'lua' disable_formatters = {}, -- e.g. 'eslint', 'prettier', 'lua'
}, },
tsserver = { tsserver = {
@ -17,5 +16,4 @@ config.lsp = {
} }
return config return config
]] ]]

View file

@ -24,6 +24,8 @@ if not present then
if present then if present then
print('Packer cloned successfully.') print('Packer cloned successfully.')
packer.sync()
packer.compile()
else else
error("Couldn't clone packer !\nPacker path: " .. packer_path .. '\n' .. packer) error("Couldn't clone packer !\nPacker path: " .. packer_path .. '\n' .. packer)
end end