From be6401a46ea8ff20bce9fedcedd481d9e77c61d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Thu, 30 Nov 2023 21:35:19 +0100 Subject: [PATCH] command: Reload plugins at reload command too --- internal/action/command.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/internal/action/command.go b/internal/action/command.go index 16d2fff812..324b0df3a1 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -344,9 +344,26 @@ func ReloadConfig() { if err != nil { screen.TermMessage(err) } + err = config.LoadAllPlugins() + if err != nil { + screen.TermMessage(err) + } + InitBindings() InitCommands() + err = config.RunPluginFn("preinit") + if err != nil { + screen.TermMessage(err) + } + err = config.RunPluginFn("init") + if err != nil { + screen.TermMessage(err) + } + err = config.RunPluginFn("postinit") + if err != nil { + screen.TermMessage(err) + } err = config.InitColorscheme() if err != nil { screen.TermMessage(err)