From e3676858b9c722efec478266893f146c830407f2 Mon Sep 17 00:00:00 2001
From: max397574
Date: Sat, 6 Nov 2021 10:27:58 +0100
Subject: =?UTF-8?q?docs(readme):=20=F0=9F=93=9Aremoved=20complete=20config?=
=?UTF-8?q?=20example=20(themes)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
readme.md | 100 +++++---------------------------------------------------------
1 file changed, 8 insertions(+), 92 deletions(-)
(limited to 'readme.md')
diff --git a/readme.md b/readme.md
index f570c1f..03ecfe1 100644
--- a/readme.md
+++ b/readme.md
@@ -63,6 +63,9 @@ These themes are currently available:
* Startify
* Evil_startup
+The filetype of the startup screen is `startup`.
+You can use this to disable plugins like statuslines.
+
### ποΈThe basic structure of the settings
```lua
@@ -86,6 +89,8 @@ settings = {
},
colors = {
background = , -- hex color code
+ folded_section = , -- the colors of the folded section titles
+ -- this can also be changed with the `StartupFoldedSection` highlight group
}
parts = {"section_1", "section_2"} -- all sections in order
}
@@ -95,7 +100,7 @@ section = {
type = ,
oldfiles_directory = true/false,
align = ,
- fold = true/false, --whether wo fold or not
+ fold_section = true/false, --whether to fold or not
title = ,
margin = ,
content = ,
@@ -184,6 +189,7 @@ oldfiles_amount = ,
```
### Buildingblocks
+
### Examples
@@ -255,98 +261,8 @@ content = {
-
-
-A complete configuration
-
-
-
-```lua
-local settings = {
- header = {
- type = "text",
- oldfiles_directory = false,
- align = "center",
- fold = false,
- title = "",
- margin = 5,
- content = require"startup.buildingblocks.headers".hydra(),
- highlight = "TSString",
- default_color = "",
- -- use `I` to edit init.lua and `C` to search config files
- command = [[
- nnoremap I :e ~/.config/nvim/init.lua
- nnoremap C :lua require'telescope.builtin'.find_files({cwd="~/.config"})
- ]],
- oldfiles_amount = 0,
- }
-
- body_1 = {
- type = "oldfiles"
- oldfiles_directory = false,
- align = "center",
- fold = true,
- title = "Last Opened Files"
- margin = 5,
- content = "",
- highlight = "",
- default_color = "#db4b4b",
- command = "",
- oldfiles_amount = 8,
- }
-
- body_2 = {
- type = "mappings",
- oldfiles_directory = false,
- align = "center",
- fold = false,
- title = "",
- margin = 5,
- content = {
- ["ο
Find File"] = { "Telescope find_files", "ff" },
- ["ο‘ Find Word"] = { "Telescope live_grep", "lg" },
- ["ο€ Recent Files"] = { "Telescope oldfiles", "of" },
- ["ξ File Browser"] = { "Telescope file_browser", "fb" },
- ["ξ« Colorschemes"] = { "Telescope colorscheme", "cs" },
- ["ο
New File"] = { "lua require'startup'.new_file()", "nf" },
- },
- highlight = "Number",
- default_color = "#699999",
- command = "",
- oldfiles_amount = 0,
- }
-
- footer = {
- type = "text",
- oldfiles_directory = false,
- align = "center",
- fold = false,
- title = "",
- margin = 5,
- content = require"startup.buildingblocks.functions".quote(),
- highlight = "Constant",
- default_color = "",
- command = "",
- oldfiles_amount = 0,
- }
-
- options = {
- mapping_keys = true,
- empty_lines_between_mappings = false,
- paddings = { 1, 2, 2, 1 }
- }
+Check out the [themes](https://github.com/max397574/startup.nvim/tree/dev/lua/startup/themes) for full examples.
- colors = {
- background = "#1e222a"
- }
- parts = { "header", "body_1", "body_2", "footer" }
-}
-
-return settings
-```
-
-
-
Credits
-------
--
cgit v1.2.3