This project provides some tools related to luaprompt:
A prompt with powerlevel10k style
~/.config/luaprc.lua
:
local prompt = require "prompt"
local style = require "prompt.style"
prompt.prompts = { style.generate_ps1(), " " }
If there is a git repository, the project name can be achieved by git. Else use
the base name of current working directory.
You can call (require "prompt.style").wakatime("wakatime-cli XXX")
to
customize it.
~/.config/nvim/init.lua
:
local l_flag = false
for _, arg in ipairs(vim.v.argv) do
if l_flag == true then
vim.g.script_name = vim.fs.basename(arg)
break
end
if arg == "-l" then
l_flag = true
end
end
if vim.g.script_name == "nvimp" then
require"prompt".name = "nvim"
loadfile(vim.fs.joinpath(os.getenv("HOME"), ".config", "luaprc.lua"))()
-- skip loading unnecessary vim plugins
return
end
Refer luatex.
Broken in upstream
paru -S lua{,51,52,53}-prompt-style
luarocks install prompt-style