Skip to content

v2.6.0

Compare
Choose a tag to compare
@LintaoAmons LintaoAmons released this 17 Jan 14:20
· 24 commits to main since this release
68cdcf6

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

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

  1. Default render logic: Change bookmark appearance based on whether they have descriptions in treeview

    • Bookmarks with descriptions: ‚óè
    • Bookmarks without descriptions: ‚óã
  2. Visual Styling: Customize active bookmark highlighting

    • Background color
    • Text color
    • Text boldness

Full Changelog: v2.5.0...v2.6.0