Git Product home page Git Product logo

prompt-style.lua's Introduction

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.

prompt-style.lua's People

Contributors

freed-wu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

meslubi2021

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.