Skip to content

raquentin/tamagotchi.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐱 tamagotchi.nvim

A configurable plugin for raising pets across Neovim sessions.

Warning

This project is days old. The .setup({ API will change often.

Features

  • Floating Window UI: Displays your pet with sprite animations, stats, and a colored bottom bar with interactive tabs.
  • Customizable Behavior: Configure tick length, decay probabilities, and Vim events that affect your pet's mood and satiety.
  • (soon) Multiple Pets: Manage a list of pets, select different ones from a menu, view more info, and reset as needed.
  • Persistent State: Your pet's mood and satiety persist across Neovim sessions.

Installation

vim-plug

Plug "raquentin/tamagotchi.nvim"

packer.nvim

use { "raquentin/tamagotchi.nvim", }

lazy.nvim

{ "raquentin/tamagotchi.nvim", }

Configuration

```lua
require('tamagotchi').setup({
  window_toggle_keybind = "<leader>tg",
  tick_length_ms = 100,
  default_pet = "Lucy",
  pets = {
    {
      name = "Ilya",

      sprite_update_interval = 5,
      sprites = kitty_sprites,

      initial_mood = 95,
      initial_satiety = 95,
      decay_speed = 3,

      vim_events = {
        {
          name = "BufWritePost",
          mood_increment = 22,
          satiety_increment = 2,
        },
        {
          name = "TextYankPost",
          mood_increment = 0,
          satiety_increment = 13,
        },
      },
    },
  },
})

Screenshot

2025-01-19T00:05:57,318965100-05:00

Native Pets

Contributing

Submit issues and PRs as you please.

If you have a more general question, start a discussion.

About

🐱 Write programs to satiate ascii kitties, ducks, and Rust devs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published