diff options
-rw-r--r-- | after/plugin/startup.lua | 5 | ||||
-rw-r--r-- | lua/startup/themes/default.lua | 1 | ||||
-rw-r--r-- | lua/startup/themes/evil_startup.lua | 1 | ||||
-rw-r--r-- | lua/startup/themes/startify.lua | 1 | ||||
-rw-r--r-- | lua/startup/utils.lua | 5 | ||||
-rw-r--r-- | readme.md | 1 |
6 files changed, 13 insertions, 1 deletions
diff --git a/after/plugin/startup.lua b/after/plugin/startup.lua new file mode 100644 index 0000000..82e1f0d --- /dev/null +++ b/after/plugin/startup.lua @@ -0,0 +1,5 @@ +vim.defer_fn(function() + if vim.bo.ft == "startup" then + require"startup.utils".set_buf_options() + end +end,1) diff --git a/lua/startup/themes/default.lua b/lua/startup/themes/default.lua index 0e16545..1e80dfc 100644 --- a/lua/startup/themes/default.lua +++ b/lua/startup/themes/default.lua @@ -60,6 +60,7 @@ local settings = { options = { mapping_keys = true, empty_lines_between_mappings = true, + disable_statuslines = true, paddings = { 1, 3, 3, 0 }, }, mappings = { diff --git a/lua/startup/themes/evil_startup.lua b/lua/startup/themes/evil_startup.lua index bed5861..390ba83 100644 --- a/lua/startup/themes/evil_startup.lua +++ b/lua/startup/themes/evil_startup.lua @@ -107,6 +107,7 @@ local settings = { options = { mapping_keys = true, empty_lines_between_mappings = true, + disable_statuslines = true, paddings = { 0, 1, 1, 1, 1, 1, 1 }, }, colors = { diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua index acd9869..0a335b3 100644 --- a/lua/startup/themes/startify.lua +++ b/lua/startup/themes/startify.lua @@ -56,6 +56,7 @@ local settings = { options = { mapping_keys = false, empty_line_between_mappings = false, + disable_statuslines = true, paddings = { 1, 2, 2, 3 }, }, mappings = { diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index 253f08e..d4ec7ae 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -202,7 +202,10 @@ function U.set_buf_options() vim.api.nvim_buf_set_option(0, "bufhidden", "wipe") vim.api.nvim_buf_set_option(0, "buftype", "nofile") vim.cmd [[set wrap]] - vim.cmd [[set laststatus=0]] + if settings.options.disable_statuslines then + vim.cmd [[set laststatus=0]] + vim.cmd [[set showtabline=0]] + end vim.api.nvim_buf_set_option(0, "filetype", "startup") vim.api.nvim_buf_set_option(0, "swapfile", false) vim.cmd [[setlocal nonu nornu]] @@ -76,6 +76,7 @@ settings = { options = { mapping_keys = true/false, -- display mapping (e.g. <leader>ff) empty_lines_between_mappings = true/false, -- add an empty line between mapping/commands + disable_statuslines = true/false -- disable status and bufferlines paddings = <paddings>, } mappings = { |