We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.10.0-dev-86+g54dab9ed9
WSL Arch
-- does not work vim.api.nvim_create_autocmd("User", { pattern = "LazySyncPre", callback = function() vim.print("ran update") require("astronvim.utils.updater").update() end, }) -- works fine vim.api.nvim_create_autocmd("User", { pattern = "LazySync", callback = function() vim.print("ran synceddd") require("astronvim.utils.mason").update() end, })
see above on code. Run :Lazy then S for Sync.
:Lazy
S
LazySyncPre event to fire. LazySync works fine
-- DO NOT change the paths and don't remove the colorscheme local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end -- bootstrap lazy local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins require("lazy").setup(plugins, { root = root .. "/plugins", }) vim.cmd.colorscheme("tokyonight") -- add anything else here -- does not work vim.api.nvim_create_autocmd("User", { pattern = "LazySyncPre", callback = function() vim.print("ran update") require("astronvim.utils.updater").update() end, }) -- works fine vim.api.nvim_create_autocmd("User", { pattern = "LazySync", callback = function() vim.print("ran synceddd") require("astronvim.utils.mason").update() end, })
The text was updated successfully, but these errors were encountered:
6163413
Sync is a special case, since that's internally just a clean/install and update. Just made sure the pre event is triggered for sync as well.
Sorry, something went wrong.
thanks haha, so fast
Successfully merging a pull request may close this issue.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0-dev-86+g54dab9ed9
Operating system/version
WSL Arch
Describe the bug
Steps To Reproduce
see above on code. Run
:Lazy
thenS
for Sync.Expected Behavior
LazySyncPre event to fire. LazySync works fine
Repro
The text was updated successfully, but these errors were encountered: