diff options
author | max397574 <[email protected]> | 2021-11-09 07:30:27 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-11-09 07:30:27 +0100 |
commit | c140b4ff22bdac3ead99243afcd7453f9a2cd539 (patch) | |
tree | 570b9ca4579edda29c94a85390302b264ca9ba61 /lua/startup/themes/evil.lua | |
parent | 68792dab33d490d5e3c890919f8af47f6f05cb71 (diff) |
refactor(themes): 🔄fixed buildingblocks and renamed evil
Diffstat (limited to 'lua/startup/themes/evil.lua')
-rw-r--r-- | lua/startup/themes/evil.lua | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/lua/startup/themes/evil.lua b/lua/startup/themes/evil.lua new file mode 100644 index 0000000..a211b71 --- /dev/null +++ b/lua/startup/themes/evil.lua @@ -0,0 +1,128 @@ +local settings = { + -- every line should be same width without escaped \ + header = { + type = "text", + align = "center", + fold_section = false, + title = "Header", + margin = 5, + content = require("startup.headers").hydra(), + highlight = "Statement", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + header_2 = { + type = "text", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Quote", + margin = 5, + content = require("startup.functions").quote(), + highlight = "Constant", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + -- name which will be displayed and command + body = { + type = "mapping", + align = "center", + fold_section = true, + title = "Basic Commands", + margin = 5, + content = { + [" Find File"] = { "Telescope find_files", "<leader>ff" }, + [" Find Word"] = { "Telescope live_grep", "<leader>lg" }, + [" Recent Files"] = { "Telescope oldfiles", "<leader>of" }, + [" File Browser"] = { "Telescope file_browser", "<leader>fb" }, + [" Colorschemes"] = { "Telescope colorscheme", "<leader>cs" }, + [" New File"] = { "lua require'startup'.new_file()", "<leader>nf" }, + }, + highlight = "String", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + body_2 = { + type = "oldfiles", + oldfiles_directory = true, + align = "center", + fold_section = true, + title = "Oldfiles of Directory", + margin = 5, + content = {}, + highlight = "String", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 5, + }, + footer = { + type = "oldfiles", + oldfiles_directory = false, + align = "center", + fold_section = true, + title = "Oldfiles", + margin = 5, + content = { "startup.nvim" }, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 10, + }, + + clock = { + type = "text", + content = function() + local clock = " " .. os.date("%H:%M") + local date = " " .. os.date("%d-%m-%y") + return { clock, date } + end, + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "", + margin = 5, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 10, + }, + + footer_2 = { + type = "text", + content = require("startup.functions").packer_plugins(), + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "", + margin = 5, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 10, + }, + + options = { + mapping_keys = true, + cursor_column = 0.5, + empty_lines_between_mappings = true, + disable_statuslines = true, + paddings = { 0, 1, 1, 1, 1, 1, 1 }, + }, + colors = { + background = "#1f2227", + folded_section = "#56b6c2", + }, + parts = { + "header", + "header_2", + "body", + "body_2", + "footer", + "clock", + "footer_2", + }, +} +return settings |