Neovim integration for Notr—browse, preview, and edit encrypted notes without leaving the editor.
- Fzf-lua powered pickers for notebooks and notes
- Live Markdown previews driven by
notr view --plain - In-buffer editing with automatic
notr update+ optionalnotr sync - Configurable path to the
notrexecutable and auto-sync behaviour
With lazy.nvim:
{
"kimusan/notr.nvim",
config = function()
require("notr").setup({
cmd = "notr",
auto_sync = true,
})
end,
dependencies = { "ibhagwan/fzf-lua" },
}Commands provided:
:NotrNotebooks– fuzzy pick notebooks, then jump into notes picker.:NotrNotes [notebook]– open the notes picker directly (optional notebook argument).:NotrNewNotebook [name]– create (or ensure) a notebook, prompting for a name if omitted.:NotrNewNote [notebook]– open a new note buffer ready to save into a notebook (prompting if omitted).:NotrSync– runnotr syncfrom inside Neovim.
Within the notes picker:
<Enter>– open the selected note in a markdown buffer backed bynotr update.Ctrl-s– trigger a manualnotr sync.
The opened buffer is marked acwrite; :write (or auto-write) pushes changes through notr update and, if enabled, notr sync afterwards.
Tip: run
notr loginin a shell first so the master key is unlocked before you start editing inside Neovim.
Call require("notr").setup({ ... }) to override defaults:
require("notr").setup({
cmd = "notr", -- path to the notr executable
auto_sync = true, -- run `notr sync` after each update
})- Telescope picker support
- Async status reporting during sync/update operations
- Keymaps for quick note creation
PRs welcome—see CONTRIBUTING.md.