aboutsummaryrefslogtreecommitdiff
path: root/lua/startup
diff options
context:
space:
mode:
authormax397574 <[email protected]>2021-11-06 10:27:33 +0100
committermax397574 <[email protected]>2021-11-06 10:27:33 +0100
commit439e78847c7667e791c09be59c95d79dd8e3733a (patch)
tree0bd5c41e681c9f597af4257eec2c5bff6210fd0f /lua/startup
parent67e1af348314df7dc020a6ac0fa02b69ff99afea (diff)
feat(themes): ✨use all options and make themes nicer
Diffstat (limited to 'lua/startup')
-rw-r--r--lua/startup/themes/default.lua3
-rw-r--r--lua/startup/themes/evil_startup.lua3
-rw-r--r--lua/startup/themes/startify.lua45
3 files changed, 39 insertions, 12 deletions
diff --git a/lua/startup/themes/default.lua b/lua/startup/themes/default.lua
index beab5dc..0e16545 100644
--- a/lua/startup/themes/default.lua
+++ b/lua/startup/themes/default.lua
@@ -54,7 +54,7 @@ local settings = {
highlight = "Number",
default_color = "",
command = "",
- oldfi = 0,
+ oldfiles_amount = 0,
},
options = {
@@ -71,6 +71,7 @@ local settings = {
},
colors = {
background = "#1f2227",
+ folded_section = "#56b6c2",
},
parts = { "header", "body", "footer" },
}
diff --git a/lua/startup/themes/evil_startup.lua b/lua/startup/themes/evil_startup.lua
index 1c5878b..bed5861 100644
--- a/lua/startup/themes/evil_startup.lua
+++ b/lua/startup/themes/evil_startup.lua
@@ -53,7 +53,7 @@ local settings = {
title = "Oldfiles of Directory",
margin = 5,
content = {},
- highlight = "TSString",
+ highlight = "String",
default_color = "#FFFFFF",
command = "",
oldfiles_amount = 5,
@@ -111,6 +111,7 @@ local settings = {
},
colors = {
background = "#1f2227",
+ folded_section = "#56b6c2",
},
parts = {
"header",
diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua
index dc1091d..acd9869 100644
--- a/lua/startup/themes/startify.lua
+++ b/lua/startup/themes/startify.lua
@@ -1,10 +1,17 @@
-local settings = require "startup.themes.default"
-settings = {
+-- NOTE: lua dump(vim.fn.expand("#<1")) to get newest oldfile
+local settings = {
header = {
type = "text",
+ oldfiles_directory = false,
align = "left",
+ fold_section = false,
+ title = "Header",
margin = 5,
content = require("startup.buildingblocks.headers").default_header(),
+ highlight = "Statement",
+ default_color = "",
+ command = "",
+ oldfiles_amount = 0,
},
body = {
type = "oldfiles",
@@ -13,9 +20,9 @@ settings = {
fold_section = false,
title = "Oldfiles",
margin = 5,
- content = { "startup.nvim" },
- highlight = "TSString",
- default_color = "#FFFFFF",
+ content = "",
+ highlight = "String",
+ default_color = "",
command = "",
oldfiles_amount = 10,
},
@@ -24,25 +31,43 @@ settings = {
oldfiles_directory = true,
align = "center",
fold_section = false,
- title = "Oldfiles of Directory",
+ title = "",
margin = 5,
- content = {},
- highlight = "TSString",
- default_color = "#FFFFFF",
+ content = "",
+ highlight = "String",
+ default_color = "",
command = "",
oldfiles_amount = 10,
},
footer = {
type = "text",
+ oldfiles_directory = true,
+ align = "center",
+ fold_section = false,
+ title = "Quote",
+ margin = 5,
content = require("startup.buildingblocks.functions").quote(),
+ highlight = "String",
+ default_color = "",
+ command = "",
+ oldfiles_amount = 0,
},
options = {
- oldfiles_amount = 3,
+ mapping_keys = false,
+ empty_line_between_mappings = false,
paddings = { 1, 2, 2, 3 },
},
+ mappings = {
+ execute_command = "<CR>",
+ open_file = "o",
+ open_file_split = "<c-o>",
+ open_section = "<TAB>",
+ open_help = "?",
+ },
colors = {
background = "#1f2227",
+ folded_section = "#56b6c2",
},
parts = { "header", "body", "body_2", "footer" },
}