Custom hover notes with categories support
https://github.com/user-attachments/assets/1dcc8dcc-ea98-4857-8f0b-9035460d3ce9
The main goal of this plugin is to add the ability to attach notes to words and view them in a floating window
The same note is displayed for every occurrence of this word, not only in specific line/file/buffer
Features:
Install the plugin with your favourite package manager:
{
"lolpie244/hover-notes.nvim",
}
require('packer').startup(function()
use {
"lolpie244/hover-notes.nvim",
}
end)
require("hover-notes").setup({
notesDir = vim.fn.stdpath("data") .. "/hover-notes", -- the root directory where all notes are stored
defaultCategory = { -- the default note category
name = "Default",
format = "{text}",
},
ui = { -- style of the float window
float = {
style = "minimal",
border = "rounded",
},
},
highlight = {
enable = true,
-- if length of words in dictionary is longer than subsstr_match_size_limit - use exact word match instead of substring
subsstr_match_size_limit = 1000,
style = { underline = true, sp = vim.api.nvim_get_hl(0, { name = "String", link = false }).fg, bold = true, default = true },
},
})
| Command | Description |
|---|---|
HNShow {word} | Show the note for the word* |
HNEdit {word} | Add/edit the note for the word* |
HNDeleteNote {word} | Delete the note for the word* |
HNQuiz {word} | Start Quiz mode for the word* |
HNCreateCategory {name} | Create new notes category |
HNDeleteCategory {name} | Delete existing category with all notes |
HNGetCategory | Get category used by this buffer |
HNSetWorkspace {name} | Set notes category for the workspace |
HNSetBuffer {name} | Set notes category for the buffer |
HNSetFile {name} | Set notes category for the file |
*All commands that target a word (HNShow, HNEdit...) will automatically prioritize:
:HNShow loremLua
100.0%
Custom hover notes with categories support
https://github.com/user-attachments/assets/1dcc8dcc-ea98-4857-8f0b-9035460d3ce9
The main goal of this plugin is to add the ability to attach notes to words and view them in a floating window
The same note is displayed for every occurrence of this word, not only in specific line/file/buffer
Features:
Install the plugin with your favourite package manager:
{
"lolpie244/hover-notes.nvim",
}
require('packer').startup(function()
use {
"lolpie244/hover-notes.nvim",
}
end)
require("hover-notes").setup({
notesDir = vim.fn.stdpath("data") .. "/hover-notes", -- the root directory where all notes are stored
defaultCategory = { -- the default note category
name = "Default",
format = "{text}",
},
ui = { -- style of the float window
float = {
style = "minimal",
border = "rounded",
},
},
highlight = {
enable = true,
-- if length of words in dictionary is longer than subsstr_match_size_limit - use exact word match instead of substring
subsstr_match_size_limit = 1000,
style = { underline = true, sp = vim.api.nvim_get_hl(0, { name = "String", link = false }).fg, bold = true, default = true },
},
})
| Command | Description |
|---|---|
HNShow {word} | Show the note for the word* |
HNEdit {word} | Add/edit the note for the word* |
HNDeleteNote {word} | Delete the note for the word* |
HNQuiz {word} | Start Quiz mode for the word* |
HNCreateCategory {name} | Create new notes category |
HNDeleteCategory {name} | Delete existing category with all notes |
HNGetCategory | Get category used by this buffer |
HNSetWorkspace {name} | Set notes category for the workspace |
HNSetBuffer {name} | Set notes category for the buffer |
HNSetFile {name} | Set notes category for the file |
*All commands that target a word (HNShow, HNEdit...) will automatically prioritize:
:HNShow loremLua
100.0%