fix: update to work with latest ansikit

pull/24/head
TorchedSammy 2021-04-05 17:26:55 -04:00
parent 807ec15faa
commit 271ea946eb
1 changed files with 2 additions and 2 deletions

4
lua.go
View File

@ -12,7 +12,7 @@ import (
var minimalconf = `
ansikit = require 'ansikit'
prompt(ansikit.text(
prompt(ansikit.format(
'{blue}%u {cyan}%d {green}{reset} '
))
`
@ -64,7 +64,7 @@ func LuaInit() {
err = l.DoFile(homedir + "/.hilbishrc.lua")
if err != nil {
fmt.Fprintln(os.Stderr, err,
"An error has occured while loading your config! Falling back to minimal default config.\n")
"\nAn error has occured while loading your config! Falling back to minimal default config.\n")
l.DoString(minimalconf)
}