fix(plugins): sync and install on first run
This commit is contained in:
parent
6306ed7293
commit
fb512d0036
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue