v2.6.0
Features
- Added custom bookmark rendering with distinct icons for bookmarks with/without descriptions
- Implemented configurable highlighting for active bookmarks list
- Added support for custom colors, bold text, and background in tree view
BookmarksTree render configuration
![image](https://private-user-images.githubusercontent.com/95092244/404332290-7acd8c6e-fc20-416c-a447-f21bcdcf698c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTU0NzksIm5iZiI6MTczOTU5NTE3OSwicGF0aCI6Ii85NTA5MjI0NC80MDQzMzIyOTAtN2FjZDhjNmUtZmMyMC00MTZjLWE0NDctZjIxYmNkY2Y2OThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0NTI1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzZGZjMjU4Yjg3Zjc2NDNkMGFmZjlkNmY0NDZmYzc3ODk2ZTBmNTVkY2QwZmM4Y2Y2YmQ0YzNkMTUwODdjM2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.O59DWvTGduTMdCZHBbb8XsqDyZQJ1EvS3GTOXap6H_o)
Basic Setup
Add this to your Neovim config:
require('bookmarks').setup({
-- Basic settings
treeview = {
-- Customize how bookmarks appear
render_bookmark = function(node)
-- Change these icons to your preference
local icon = node.description and "‚óè" or "‚óã" -- Filled/Empty dot
return icon .. " " .. node.name
end,
-- Style the active bookmark highlight
highlights = {
active_list = {
bg = "#2C323C", -- Background color
fg = "#ffffff", -- Text color
bold = true, -- Make text bold
},
},
-- Window size
window_split_dimension = 30, -- Width of tree view
}
})
Key Features
-
Default render logic: Change bookmark appearance based on whether they have descriptions in treeview
- Bookmarks with descriptions:
‚óè
- Bookmarks without descriptions:
‚óã
- Bookmarks with descriptions:
-
Visual Styling: Customize active bookmark highlighting
- Background color
- Text color
- Text boldness
Full Changelog: v2.5.0...v2.6.0