diff options
Diffstat (limited to 'lua/startup')
-rw-r--r-- | lua/startup/config.lua | 42 | ||||
-rw-r--r-- | lua/startup/themes/default.lua | 70 | ||||
-rw-r--r-- | lua/startup/utils.lua | 1 |
3 files changed, 46 insertions, 67 deletions
diff --git a/lua/startup/config.lua b/lua/startup/config.lua index 3a38f9c..8508de5 100644 --- a/lua/startup/config.lua +++ b/lua/startup/config.lua @@ -1,43 +1,3 @@ -local settings = { - -- every line should be same width without escaped \ - -- header = { - -- " /$$ ", - -- " |__/ ", - -- " /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ", - -- "| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$", - -- "| $$ \\ $$| $$$$$$$$| $$ \\ $$ \\ $$/$$/ | $$| $$ \\ $$ \\ $$", - -- "| $$ | $$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$", - -- "| $$ | $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$", - -- "|__/ |__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/", - -- }, - -- header = require("startup.utils").get_oldfiles(10), - header = require("startup.utils").default_header(), - -- name which will be displayed and command - tools = { - [" 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" }, - [" Config Files"] = { - 'lua require("telescope.builtin").find_files({cwd="~/.config"})', - "<leader>cf", - }, - [" Colorschemes"] = { "Telescope colorscheme", "<leader>cs" }, - [" New File"] = { "lua require'startup'.new_file()", "<leader>nf" }, - ["ﲉ Help Files"] = { "Telescope help_tags", "<leader>fh" }, - }, - options = { - align = "center", -- center, left or right - mapping_names = true, - -- can be an integer (columns) - -- float < 1 -> percentage of screen width - padding = 5, -- only used if align left or right - }, - colors = { - background = "#1f2227", - heading_fg = "#009900", - tools_fg = "#009900", - }, -} +local settings = require "startup.themes.default" return settings diff --git a/lua/startup/themes/default.lua b/lua/startup/themes/default.lua index 3db5eb5..3c7fc07 100644 --- a/lua/startup/themes/default.lua +++ b/lua/startup/themes/default.lua @@ -1,40 +1,58 @@ local settings = { -- every line should be same width without escaped \ header = { - " /$$ ", - " |__/ ", - " /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ", - "| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$", - "| $$ \\ $$| $$$$$$$$| $$ \\ $$ \\ $$/$$/ | $$| $$ \\ $$ \\ $$", - "| $$ | $$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$", - "| $$ | $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$", - "|__/ |__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/", + type = "text", + align = "center", + padding = 5, + content = { + " /$$ ", + " |__/ ", + " /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ", + "| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$", + "| $$ \\ $$| $$$$$$$$| $$ \\ $$ \\ $$/$$/ | $$| $$ \\ $$ \\ $$", + "| $$ | $$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$", + "| $$ | $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$", + "|__/ |__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/", + }, + highlight = "markdownH1", + default_color = "#FFFFFF", + command = "", }, -- name which will be displayed and command - tools = { - [" 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" }, - [" Config Files"] = { - 'lua require("telescope.builtin").find_files({cwd="~/.config"})', - "<leader>cf", + body = { + type = "mapping", + align = "center", + padding = 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" }, }, - [" Colorschemes"] = { "Telescope colorscheme", "<leader>cs" }, - [" New File"] = { "lua require'startup'.new_file()", "<leader>nf" }, - ["ﲉ Help Files"] = { "Telescope help_tags", "<leader>fh" }, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + }, + footer = { + type = "text", + align = "center", + padding = 5, + content = { "startup.nvim" }, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", }, + options = { - align = "center", -- center, left or right - mapping_names = true, - -- can be an integer (columns) - -- float < 1 -> percentage of screen width - padding = 5, -- only used if align left or right + mapping_keys = true, + empty_lines_between_mappings = true, + gap1 = 3, + gap2 = 4, }, colors = { background = "#1f2227", - heading_fg = "#009900", - tools_fg = "#009900", }, } return settings diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index 2bfe149..101e6b3 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -57,6 +57,7 @@ function U.set_buf_options() vim.api.nvim_buf_set_option(0, "bufhidden", "wipe") vim.api.nvim_buf_set_option(0, "buftype", "nofile") vim.api.nvim_buf_set_option(0, "filetype", "dashboard") + vim.api.nvim_buf_set_option(0, "modifiable", false) vim.api.nvim_buf_set_option(0, "swapfile", false) vim.cmd [[setlocal nonu nornu]] end |