mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
fix: add packer-install hook on lvim-update
This commit is contained in:
parent
7a939ad771
commit
1078f43a51
1 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
local in_headless = #vim.api.nvim_list_uis() == 0
|
||||||
|
|
||||||
---Join path segments that were passed as input
|
---Join path segments that were passed as input
|
||||||
---@return string
|
---@return string
|
||||||
function _G.join_paths(...)
|
function _G.join_paths(...)
|
||||||
|
@ -114,10 +116,13 @@ function M:update()
|
||||||
M:update_repo()
|
M:update_repo()
|
||||||
M:reset_cache()
|
M:reset_cache()
|
||||||
require("lsp.templates").generate_templates()
|
require("lsp.templates").generate_templates()
|
||||||
vim.schedule(function()
|
if not in_headless then
|
||||||
-- TODO: add a changelog
|
vim.schedule(function()
|
||||||
vim.notify("Update complete", vim.log.levels.INFO)
|
require("packer").install()
|
||||||
end)
|
-- TODO: add a changelog
|
||||||
|
vim.notify("Update complete", vim.log.levels.INFO)
|
||||||
|
end)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function git_cmd(subcmd)
|
local function git_cmd(subcmd)
|
||||||
|
|
Loading…
Reference in a new issue