Skip to content

wakatime/prompt-style.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prompt-style.lua

readthedocs pre-commit.ci status github/workflow codecov DeepSource

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

luarocks

luaprompt is a good REPL of lua. This project provides:

luap

  • A wakatime plugin to statistic how much time you write lua in REPL.

wakatime

Besides lua's REPL, there are many programs written in lua which provide their REPLs. This project provides some wrapper scripts to use this plugin for them:

nvimp

texluap

pandocp

Usage

~/.config/luaprc.lua:

local prompt = require "prompt"
local prompt_style = require "prompt-style"

prompt.prompts = { prompt_style.generate_ps1(), "    " }

Customization

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.

See readthedocs.

Install

paru -S lua{,51,52,53}-prompt-style

NOTE: REPLs use some specific version of lua.

luarocks install prompt-style

Related Projects

  • neolua: Another lua interpreter based on neovim like nvimp. It doesn't provide a REPL like lua.