Skip to content

Commit

Permalink
command: Reload plugins at reload command too
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Nov 30, 2023
1 parent 7106369 commit be6401a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions internal/action/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be6401a

Please sign in to comment.