Skip to content

Commit 8cd55b9

Browse files
committed
🐛 Fix wrong string
1 parent 710ee4e commit 8cd55b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

prompt-style.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if table.unpack == nil then table.unpack = unpack end
1212
---@param cmd string
1313
---@return string
1414
local function wakatime(cmd)
15-
cmd = cmd or "wakatime-cli --write --plugin=repl-lua-wakatime \
16-
--entity-type=app entity=lua --alternate-language=lua --project=%s"
15+
cmd = cmd or "wakatime-cli --write --plugin=repl-lua-wakatime " ..
16+
"--entity-type=app --entity=lua --alternate-language=lua --project=%s"
1717
local s, _ = string.find(cmd, "%s")
1818
if s ~= nil then
1919
cmd = string.format(cmd,
@@ -110,11 +110,11 @@ end
110110
local function generate_ps1(char, sections)
111111
char = char or ""
112112
sections = sections or {
113-
---@diagnostic disable: missing-parameter
114-
{ "", "", wakatime },
115-
{ "black", "yellow", get_icon() }, { "blue", "black", get_version() },
116-
{ "white", "blue", get_cwd }, { "black", "white", get_time }
117-
}
113+
---@diagnostic disable: missing-parameter
114+
{ "", "", wakatime },
115+
{ "black", "yellow", get_icon() }, { "blue", "black", get_version() },
116+
{ "white", "blue", get_cwd }, { "black", "white", get_time }
117+
}
118118
local sep = ""
119119
local format = " %s "
120120
return function()

0 commit comments

Comments
 (0)