Skip to content

Ernest1338/cube-timer.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Cube-timer.nvim

Rubik's cube timer as a neovim plugin



Screenshot 1

⚙️ Features

  • 2x2, 3x3, 4x4 scrambles
  • Ao5, Ao12 calculations
  • Minial code

📦 Installation

{ "Ernest1338/cube-timer.nvim" }
use "Ernest1338/cube-timer.nvim"
add("Ernest1338/cube-timer.nvim")

🚀 Usage

Firstly, call the setup function with optional config (see configuration options below):

require("cube-timer").setup()

Then use the CubeTimer command to show the timer

Key bindings:

  • q - quit
  • 2 - change to 2x2 scramble
  • 3 - change to 3x3 scramble
  • 4 - change to 4x4 scramble
  • space - start/stop timer
  • ` - remove last time
  • | - clear times from current session

🔧 Configuration

Options:

  • size (popup window size)

  • scramble_lenghts (lenghts of scramble for each cube type, see below)

  • For folke/lazy.nvim

{
    "Ernest1338/cube-timer.nvim",
    config = {
        size = 0.9,
        scramble_lenghts = { ["2x2"] = 9, ["3x3"] = 21, ["4x4"] = 42 }
    }
}
use {
    "Ernest1338/cube-timer.nvim",
    config = function()
        require("cube-timer").setup({
            size = 0.5,
            scramble_lenghts = { ["2x2"] = 9, ["3x3"] = 21, ["4x4"] = 42 }
        })
    end
}
later(function()
    add("Ernest1338/cube-timer.nvim")
    require("cube-timer").setup({
        size = 0.5,
        scramble_lenghts = { ["2x2"] = 9, ["3x3"] = 21, ["4x4"] = 42 }
    })
end)

⚡ Requirements

  • Neovim >= v0.7.0

License

MIT

About

Rubik's cube timer as a neovim plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages