From c3fe65e78c1ba33cf2b38b1909ee84d1b37706fe Mon Sep 17 00:00:00 2001 From: bekaboo Date: Tue, 14 Jan 2025 00:21:53 -0500 Subject: [PATCH] docs(readme): format tables --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 145b69fb..3013ac28 100644 --- a/README.md +++ b/README.md @@ -1769,12 +1769,12 @@ Declared in [`lua/dropbar/utils/menu.lua`](lua/dropbar/utils/menu.lua). `dropbar_select_opts_t` has the following fields: -| Field | Type | Description | -| ------ | ------ | ------ | -| `prompt` | `string?` | determines what will be shown at the top of the select menu. | -| `format_item` | `fun(item: any): string, string[][]?` | formats the list items for display in the menu, and optionally formats virtual text chunks to be shown below the item. | -| `preview` | `fun(self: dropbar_symbol_t, item: any, idx: integer)` | previews the list item under the cursor. | -| `preview_close` | `fun(self: dropbar_symbol_t, item: any, idx: integer)` | closes the preview when the menu is closed. | +| Field | Type | Description | +| ------ | ------ | ------ | +| `prompt` | `string?` | determines what will be shown at the top of the select menu. | +| `format_item` | `fun(item: any): string, string[][]?` | formats the list items for display in the menu, and optionally formats virtual text chunks to be shown below the item. | +| `preview` | `fun(self: dropbar_symbol_t, item: any, idx: integer)` | previews the list item under the cursor. | +| `preview_close` | `fun(self: dropbar_symbol_t, item: any, idx: integer)` | closes the preview when the menu is closed. | ### Making a New Source