flashcards without leaving Neovim.
AnkiConnect bridge for reviewing Anki decks in a floating window.
| area | detail |
|---|---|
| review | :AnkiReview deck picker or direct deck start |
| scheduler | real Anki reviews through AnkiConnect |
| ui | centered review float, plain-text card rendering |
| state | last deck only |
{
"kovs713/anki.nvim",
cmd = { "AnkiReview" },
config = function()
require("anki_review").setup()
end,
}vim.pack.add({
"https://github.com/kovs713/anki.nvim",
})requires Neovim 0.10+, curl, Anki, and AnkiConnect (2055492159).
Anki must be open for reviews. AnkiConnect must listen on http://127.0.0.1:8765.
require("anki_review").setup({
anki = {
endpoint = "http://127.0.0.1:8765",
version = 6,
timeout = 5000,
},
window = {
width = 0.7,
height = 0.7,
min_width = 40,
min_height = 12,
border = "rounded",
},
picker = {
width = 0.5,
height = 0.6,
},
behavior = {
remember_last_deck = true,
default_ease = 3,
},
})| command | action |
|---|---|
:AnkiReview |
open deck picker |
:AnkiReview <deck> |
review deck |
:AnkiReview! |
review last deck |
:AnkiReview deck <deck> |
force deck name |
| key | action |
|---|---|
<Space> |
reveal answer |
<CR> |
answer Good / next card |
1 |
Again |
2 |
Hard |
3 |
Good |
4 |
Easy |
q |
quit |
completion keys: r review same deck, q close.
Plugin state lives at:
stdpath("state")/anki_review/state.json
it stores plugin-owned state only: last deck.
yes, Anki still has to be open.
no, you do not have to look at it.
Anki handles the scheduler.
Neovim handles the cave.
you handle the queue.
terminal gremlin certified