Neovim plugin for git-remarks — personal developer notes attached to Git commits.
Before install the plugin make sure that you have installed git-remarks
{
"Enigama/remarks.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
},
config = function()
require("remarks").setup()
end,
}
use {
"Enigama/remarks.nvim",
requires = { "nvim-telescope/telescope.nvim" },
config = function()
require("remarks").setup()
end,
}
require("remarks").setup({
edit = {
style = "float", -- "float" | "split" | "vsplit" | "tab"
width = 0.6, -- float width (0-1 = percentage)
height = 0.4, -- float height
},
default_type = "thought", -- default remark type
telescope = {
theme = nil, -- "dropdown" | "ivy" | "cursor" | nil
},
})
| Command | Description |
|---|---|
:Remarks |
Open Telescope picker with all active remarks |
:RemarksAdd [type] |
Quick add a remark (thought, doubt, todo, decision) |
:RemarksAddFull |
Add a remark via buffer with full template |
:RemarksShow |
Show remarks on current commit |
:RemarksInit |
Initialize git-remarks hooks in repository |
When in the Remarks picker:
| Key | Action |
|---|---|
<CR> |
Edit selected remark |
d / x / <C-d> |
Resolve (delete) selected remark |
a / <C-a> |
Add new remark |
" Initialize hooks in your repo (once)
:RemarksInit
" Quick add a thought
:RemarksAdd
> Remark (thought): Not sure about this approach
" Add with specific type
:RemarksAdd todo
> Remark (todo): Refactor before merge
" Full add with template
:RemarksAddFull
" Opens buffer:
" # New remark on abc1234 (feature/auth)
" type: thought
" ---
" Your detailed note here...
" Browse all remarks
:Remarks
" Show remarks on current commit
:RemarksShow
MIT
Contributions are welcome! Please feel free to submit a Pull Request.