diff options
-rw-r--r-- | lua/startup/init.lua | 4 | ||||
-rw-r--r-- | lua/startup/themes/dashboard.lua | 3 | ||||
-rw-r--r-- | lua/startup/themes/evil.lua | 7 | ||||
-rw-r--r-- | lua/startup/themes/startify.lua | 4 | ||||
-rw-r--r-- | readme.md | 7 |
5 files changed, 4 insertions, 21 deletions
diff --git a/lua/startup/init.lua b/lua/startup/init.lua index cbc3bb9..76260bc 100644 --- a/lua/startup/init.lua +++ b/lua/startup/init.lua @@ -304,7 +304,6 @@ function startup.display() end end create_mappings({}) - vim.cmd(options.command) end if settings.folded_section_color ~= "" then vim.cmd( @@ -325,6 +324,9 @@ function startup.display() for linenr, line in ipairs(startup.lines) do vim.api.nvim_buf_add_highlight(0, ns, line[4], linenr - 1, 0, -1) end + if settings.options.after and settings.options.after ~= "" then + settings.options.after() + end set_buf_opt(0, "modifiable", false) vim.api.nvim_win_set_cursor(0, { 1, 1 }) vim.api.nvim_win_set_cursor(0, { diff --git a/lua/startup/themes/dashboard.lua b/lua/startup/themes/dashboard.lua index 1041ecf..215aa8c 100644 --- a/lua/startup/themes/dashboard.lua +++ b/lua/startup/themes/dashboard.lua @@ -19,7 +19,6 @@ local settings = { }, highlight = "Statement", default_color = "", - command = "", oldfiles_amount = 0, }, -- name which will be displayed and command @@ -40,7 +39,6 @@ local settings = { }, highlight = "String", default_color = "", - command = "", oldfiles_amount = 0, }, footer = { @@ -53,7 +51,6 @@ local settings = { content = { "startup.nvim" }, highlight = "Number", default_color = "", - command = "", oldfiles_amount = 0, }, diff --git a/lua/startup/themes/evil.lua b/lua/startup/themes/evil.lua index a211b71..f68fad7 100644 --- a/lua/startup/themes/evil.lua +++ b/lua/startup/themes/evil.lua @@ -9,7 +9,6 @@ local settings = { content = require("startup.headers").hydra(), highlight = "Statement", default_color = "", - command = "", oldfiles_amount = 0, }, header_2 = { @@ -22,7 +21,6 @@ local settings = { content = require("startup.functions").quote(), highlight = "Constant", default_color = "", - command = "", oldfiles_amount = 0, }, -- name which will be displayed and command @@ -42,7 +40,6 @@ local settings = { }, highlight = "String", default_color = "", - command = "", oldfiles_amount = 0, }, body_2 = { @@ -55,7 +52,6 @@ local settings = { content = {}, highlight = "String", default_color = "#FFFFFF", - command = "", oldfiles_amount = 5, }, footer = { @@ -68,7 +64,6 @@ local settings = { content = { "startup.nvim" }, highlight = "TSString", default_color = "#FFFFFF", - command = "", oldfiles_amount = 10, }, @@ -86,7 +81,6 @@ local settings = { margin = 5, highlight = "TSString", default_color = "#FFFFFF", - command = "", oldfiles_amount = 10, }, @@ -100,7 +94,6 @@ local settings = { margin = 5, highlight = "TSString", default_color = "#FFFFFF", - command = "", oldfiles_amount = 10, }, diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua index bd51d59..8fa5338 100644 --- a/lua/startup/themes/startify.lua +++ b/lua/startup/themes/startify.lua @@ -10,7 +10,6 @@ local settings = { content = require("startup.headers").default_header(), highlight = "Statement", default_color = "", - command = "", oldfiles_amount = 0, }, body = { @@ -23,7 +22,6 @@ local settings = { content = "", highlight = "String", default_color = "", - command = "", oldfiles_amount = 10, }, body_2 = { @@ -36,7 +34,6 @@ local settings = { content = "", highlight = "String", default_color = "", - command = "", oldfiles_amount = 10, }, @@ -50,7 +47,6 @@ local settings = { content = require("startup.functions").quote(), highlight = "String", default_color = "", - command = "", oldfiles_amount = 0, }, options = { @@ -84,6 +84,7 @@ settings = { -- if < 0 fraction of screen width -- if > 0 numbers of column cursor_column = <number> + after = function() <lua commands> end -- function that gets executed at the end empty_lines_between_mappings = true/false, -- add an empty line between mapping/commands disable_statuslines = true/false -- disable status and bufferlines paddings = <paddings>, @@ -116,7 +117,6 @@ section = { content = <content>, highlight = <highlight>, default_color = <color>, - command = <command>, oldfiles_amount = <amount>, } @@ -188,11 +188,6 @@ highlight = highlight_group -- string default_color = <color>, --- vim command to be executed, when section get set --- for example to create mappings --- string -command = <command>, - -- the amount of oldfiles to be displayed -- integer oldfiles_amount = <amount>, |