mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix: dashboard now runs on fresh installs (#1896)
This commit is contained in:
parent
32ca5afa4a
commit
a6845c9cc7
2 changed files with 6 additions and 5 deletions
|
@ -71,7 +71,11 @@ M.setup = function()
|
|||
return
|
||||
end
|
||||
|
||||
treesitter_configs.setup(lvim.builtin.treesitter)
|
||||
local opts = vim.deepcopy(lvim.builtin.treesitter)
|
||||
|
||||
-- avoid running any installers in headless mode since it's harder to detect failures
|
||||
opts.ensure_installed = #vim.api.nvim_list_uis() == 0 and {} or opts.ensure_installed
|
||||
treesitter_configs.setup(opts)
|
||||
|
||||
if lvim.builtin.treesitter.on_config_done then
|
||||
lvim.builtin.treesitter.on_config_done(treesitter_configs)
|
||||
|
|
|
@ -353,16 +353,13 @@ function setup_lvim() {
|
|||
|
||||
echo "Preparing Packer setup"
|
||||
|
||||
rm -f "$LUNARVIM_CONFIG_DIR/config.lua"
|
||||
touch "$LUNARVIM_CONFIG_DIR/config.lua"
|
||||
cp "$LUNARVIM_RUNTIME_DIR/lvim/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua"
|
||||
|
||||
"$INSTALL_PREFIX/bin/lvim" --headless \
|
||||
-c 'autocmd User PackerComplete quitall' \
|
||||
-c 'PackerSync'
|
||||
|
||||
echo "Packer setup complete"
|
||||
|
||||
cp "$LUNARVIM_RUNTIME_DIR/lvim/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua"
|
||||
}
|
||||
|
||||
function update_lvim() {
|
||||
|
|
Loading…
Reference in a new issue