diff options
author | max397574 <[email protected]> | 2021-11-17 09:12:15 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-11-17 09:12:15 +0100 |
commit | db60c5e23139258f3740aafeccf7ad75b4cc4aca (patch) | |
tree | 7ed6ebeef8a9822c659f60f11644829f9bce348c /lua | |
parent | eed71f3f5646a3d653b26dfac652184440e9c34d (diff) |
feat(settings): removed command and added after
Diffstat (limited to 'lua')
-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 |
4 files changed, 3 insertions, 15 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 = { |