https://github.com/aurelberra/lipsum-nvim

https://github.com/aurelberra/lipsum-nvim

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: aurelberra
  • Language: Lua
  • Default Branch: main
  • Size: 23.4 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

lipsum-nvim

A (more or less) simple Lorem Ipsum generation plugin.

Originally created by Stewie410, whose repo is no longer available.

✨ Features

  • Use either preset or user-defined word lists for generation
  • Generate one or more words, lines/sentences or paragraphs
  • Customize generator command names

⚠️ Requirements

  • Neovim version 0.10.0 or higher
    • Only tested on v0.10, may work on older versions

📦 Installation

💤 lazy.nvim

lua { "aurelberra/lipsum-nvim", cmd = { "LipsumWord", "LipsumLine", "LipsumParagraph", }, opts = {}, }

🚐 mini.deps

lua local deps = require("mini.deps") deps.add({ source = "aurelberra/lipsum-nvim", })

📝 Configuration

lua require("lipsum-nvim").setup({ ---@type string[] List of words used for generation, will be merged with lipsum-nvim.Options.word_list words = {}, ---@type 'cicero'|'english'|'letraset'|'lipsum'|'proust'|'standard'|nil Preset word list word_list = "standard", ---@type decimal Chance to insert a comma after a word comma_chance = 0.2, ---@type decimal Chance to insert a semicolon after a word semicolon_chance = 0.05, ---@type number[] Min/Max number of words per line line_len = { 5, 12 }, ---@type number[] Min/Max number of lines per paragraph paragraph_len = { 5, 20 }, ---@type table<string, string|nil> Create generation commands, set to nil to disable the command user_commands = { ---@type string|nil Command to generate word(s), set to nil to disable words = "LipsumWord", ---@type string|nil Command to generate line(s), set to nil to disable lines = "LipsumLine", ---@type string|nil Command to generate paragraph(s), set to nil to disable paragraphs = "LipsumParagraph", }, })

The preset word lists are the following:

  • standard: a very common list of 63 unique, mostly Latin words, based on fragments of Cicero’s De finibus bonorum et malorum, with 12 characters added (see the “Lorem Ipsum” Wikipedia article)
  • lipsum: a common list of 293 unique, loosely Latin-looking, sometimes longer words extending the standard form
  • letraset: a list of 155 unique loosely Latin-looking or English words used in the 1970s Letraset sample sheets which popularised the practice of Lorem Ipsum placeholder texts (quoted in this scholarly blog post demonstrating that it is the source of the standard version, using the same edition of Cicero’s text)
  • cicero: a list of 182 unique Latin words
  • english: a list of 185 unique English words
  • proust: a list of 204 unique French words, derived from the opening paragraphs of Marcel Proust’s À la recherche du temps perdu

⌨️ Commands

Command names can be customized in the setup options, but by default:

  • LipsumWord [num]: generate random word(s) from word list
  • LipsumLine [num]: generate random line(s)/sentence(s) from word list
  • LipsumParagraph [num]: generate random paragraph(s) from word list

Each command will always generate at least 1 item.

Word Generation

Words generated with lipsum.com, based on the following options:

  • 100,000 words
  • Start with “Lorem ipsum dolor sit amet” enabled

Once produced, filtered the results with some shellscript:

bash tr -d '\n[:punct:]' < lorem.txt | \ tr '[:upper:] ' '[:lower:]\n' | \ awk '!seen[$0]++ { printf "\t\"%s\",\n", $1 }' | \ sort

While this may not produce every possible word from the generator, on average this produces around 300 unique words, which should be sufficient.

To add your own custom words:

bash require("lipsum-nvim").setup({ words = { -- words }, })

Links

Owner

  • Name: Aurélien Berra
  • Login: aurelberra
  • Kind: user

GitHub Events

Total
  • Push event: 9
  • Create event: 2
Last Year
  • Push event: 9
  • Create event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 12
  • Total Committers: 1
  • Avg Commits per committer: 12.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 12
  • Committers: 1
  • Avg Commits per committer: 12.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Aurélien Berra a****a@g****m 12

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels