Neovim plugin to solve "What was I doing here" when moving between dirs.
It's for someone who doesn't need a terminal multiplexer like tmux or zellij but hops in and out of folders with multiple neovim instances and need to place a mental checkpoint in what they were doing or thinking.
- Store intentions per workspace (cwd)
- Persistent storage between Neovim sessions
- Minimal and fast
- Written in pure Lua
- Neovim >= 0.8.0
- nvim-lua/plenary.nvim
Using lazy.nvim:
{
"bxrne/was.nvim",
dependencies = {
"nvim-lua/plenary.nvim", -- for path handling
},
config = true, -- calls require('was').setup()
},
Using packer.nvim:
use {
"bxrne/was.nvim",
requires = {
"nvim-lua/plenary.nvim", -- for path handling
},
config = function()
require('was').setup()
end,
}
In your Lazy or Packer configuration, you can pass an optional opts
table to require('was').setup()
:
{
-- "bxrne/was.nvim",
-- dependencies = {
-- "nvim-lua/plenary.nvim", -- for path handling
-- },
-- config = true, -- calls require('was').setup()
opts = { -- optional config
defer_time = 3000, -- default time for window to live for (ms)
},
}
Store your current intention:
:Was Implementing user authentication system
View your last stored intention:
:Was
The plugin automatically detects your workspace based on cwd.
Intentions are stored persistently in ~/.local/share/nvim/was/intentions.json
.
nvim --headless -c "PlenaryBustedDirectory tests/ { minimal_init = './tests/minimal_init.lua' }"