From 2d89bca094726b9dd4e289ac6bda367d58cf07c9 Mon Sep 17 00:00:00 2001 From: max397574 Date: Thu, 21 Oct 2021 08:06:00 +0200 Subject: =?UTF-8?q?docs(readme):=20=F0=9F=93=9Aadded=20structure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 102 insertions(+), 2 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index a1f1d01..eaa79e9 100644 --- a/readme.md +++ b/readme.md @@ -61,5 +61,105 @@ These themes are currently available: * Default * Startify - - +* Evil-startup + +### 🏗️The basic structure of the settings + +```lua +** General structure of the settings ** +settings = { + section_1 =
-- as much sections as you like + section_2 =
+ options = { + mapping_keys = true/false, -- display mapping (e.g. ff) + empty_lines_between_mappings = true/false, -- add an empty line between mapping/commands + paddings = , + } + colors = { + background = , -- hex color code + } + parts = {"section_1", "section_2"} -- all sections in order +} + +** Structure of a section ** +section = { + type = , + oldfiles_directory = true/false, + align = , + fold = true/false, --whether wo fold or not + title = , + margin = <margin>, + content = <content>, + highlight = <highlight>, + default_color = <color>, + command = <command>, + oldfiles_amount = <amount>, +} + +-- table with all the paddings +paddings = { + <padding_before_section_1>, -- for as as many sections as you have + padding_before_section_2, +} + +-- e.g. #FF000D +color = hex_color_string + +-- text: content is a table of strings as content which will be displayed +-- mapping: content a table with commands/mapping which will be displayed +-- and can be used with <CR> +-- oldfiles: leave content empty +-- you can specify the amount of oldfiles and whether to display only one from the current directory +type = "text"/"mapping"/"oldfiles" + +-- display only oldfiles of current directory +-- only relevant if type = "oldfiles" +oldfiles_directory = true/false + +-- how to align the section +align = "left"/"center"/"right" + +-- whether the section should be "folded" with a title +-- title must be set +fold = true/false + +-- title of folded section +-- e.g. "Oldfiles" +title = title_string + +-- only relevant if alignment is left or right +-- if < 0 fraction of screen width +-- if > 0 numbers of column +margin = margin_number + +-- when type = "olfiles" -> leave empty +-- when type = "mapping" -> table with the format +{ + [<displayed_command_name>] = {<command>, <mapping>} +} +e.g. +{ + [" Find File"] = { "Telescope find_files", "<leader>ff" }, + [" Find Word"] = { "Telescope live_grep", "<leader>lg" }, +} +-- when type = "text" -> table with strings of text +-- those can be returned by a function +e.g. +{ "startup.nvim", "by max397574"}, -- example for a footer +content = <content> + +-- the highlight group to highlight the section with +-- leave empty to use a color +highlight = highlight_group + +-- color used if no highlight group is specified (highlight = "") +-- hex color code +default_color = <color>, + +-- vim command to be executed, when section get set +-- for example to create mappings +command = <command>, + +-- the amount of oldfiles to be displayed +oldfiles_amount = <amount>, +``` -- cgit v1.2.3