diff --git a/init.lua b/init.lua index fc677ee..3b86205 100644 --- a/init.lua +++ b/init.lua @@ -26,19 +26,22 @@ -- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ -- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ -- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ --- /VVVVVVVV\++++ /VVVVVVVV\ --- \VVVVVVVV/++++++\VVVVVVVV/ --- |VVVVVV|++++++++/VVVVV/' --- |VVVVVV|++++++/VVVVV/' --- +|VVVVVV|++++/VVVVV/'+ --- +++|VVVVVV|++/VVVVV/'+++++ --- +++++|VVVVVV|/VVV___++++++++++ --- +++|VVVVVVVVVV/##/ +_+_+_+_ --- +|VVVVVVVVV___ +/#_#,#_#,\ --- |VVVVVVV//##/+/#/+/#/'/#/ --- |VVVVV/'+/#/+/#/+/#/ /#/ --- |VVV/'++/#/+/#/ /#/ /#/ --- 'V/' /##//##//##//###/ +-- +-- ,l; c, +-- .:ooool' loo:. /VVVVVVVV\++++ /VVVVVVVV\ +-- .,oooooooo:. looooc, \VVVVVVVV/++++++\VVVVVVVV/ +-- ll:,loooooool, looooool |VVVVVV|++++++++/VVVVV/' +-- llll,;ooooooooc. looooooo |VVVVVV|++++++/VVVVV/' +-- lllllc,coooooooo; looooooo +|VVVVVV|++++/VVVVV/'+ +-- lllllll;,loooooool' looooooo +++|VVVVVV|++/VVVVV/'+++++ +-- lllllllc .:oooooooo:. looooooo +++++|VVVVVV|/VVV___++++++++++ +-- lllllllc 'loooooool,:ooooooo +++|VVVVVVVVVV/##/ +_+_+_+ +-- lllllllc ;ooooooooc,cooooo +|VVVVVVVVV___ +/#_#,#_#,\ +-- lllllllc .coooooooo;;looo |VVVVVVV//##/+/#/+/#/'/#/ +-- lllllllc ,loooooool,:ol |VVVVV/'+/#/+/#/+/#/ /#/ +-- 'cllllc .:oooooooo;. |VVV/'++/#/+/#/ /#/ /#/ +-- .;llc .loooo:. 'V/' /##//##//##//###/ +-- ,; ;l; -- -- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ -- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ @@ -81,6 +84,7 @@ require("lazy").setup({ { import = "lazyvim.plugins.extras.coding.yanky" }, { import = "lazyvim.plugins.extras.coding.mini-surround" }, { import = "lazyvim.plugins.extras.ui.mini-animate" }, + --{ import = "lazyvim.plugins.extras.ui.alpha" }, { import = "lazyvim.plugins.extras.util.gitui" }, { import = "lazyvim.plugins.extras.util.octo" }, { import = "lazyvim.plugins.extras.lang.json" }, diff --git a/lua/plugins/dashboard.lua b/lua/plugins/dashboard.lua index 67d9ec4..0379818 100644 --- a/lua/plugins/dashboard.lua +++ b/lua/plugins/dashboard.lua @@ -2,44 +2,20 @@ return { "nvimdev/dashboard-nvim", lazy = false, opts = function() - -- if line length is greater than 80, use fancy mode - if vim.fn.winwidth(0) >= 100 then - LOGO = [[ -██████╗ ██████╗ ██████╗ ████████╗██╗███████╗███████╗████████╗ ███╗ ██╗██╗ ██╗██╗███╗ ███╗ -██╔══██╗██╔═══██╗██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝╚══██╔══╝ ████╗ ██║██║ ██║██║████╗ ████║ -██████╔╝██║ ██║██║ ██║ ██║ ██║█████╗ ███████╗ ██║ ██╔██╗ ██║██║ ██║██║██╔████╔██║ -██╔══██╗██║ ██║██║ ██║ ██║ ██║██╔══╝ ╚════██║ ██║ ██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║ -██║ ██║╚██████╔╝╚██████╔╝ ██║ ██║███████╗███████║ ██║ ██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║ -╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ -]] + if vim.fn.winheight(0) >= 80 and vim.fn.winwidth(0) >= 80 then + LOGO = table.concat(vim.fn.readfile(vim.fn.stdpath("config") .. "/logo/rootiest.txt"), "\n") + elseif vim.fn.winheight(0) >= 48 and vim.fn.winwidth(0) >= 48 then + LOGO = table.concat(vim.fn.readfile(vim.fn.stdpath("config") .. "/logo/nvim.txt"), "\n") + elseif vim.fn.winwidth(0) >= 100 then + LOGO = table.concat(vim.fn.readfile(vim.fn.stdpath("config") .. "/logo/long.txt"), "\n") elseif vim.fn.winwidth(0) >= 80 then - LOGO = [[ -███████████ █████ ███ █████ -░░███░░░░░███ ░░███ ░░░ ░░███ -░███ ░███ ██████ ██████ ███████ ████ ██████ █████ ███████ -░██████████ ███░░███ ███░░███░░░███░ ░░███ ███░░███ ███░░ ░░░███░ -░███░░░░░███ ░███ ░███░███ ░███ ░███ ░███ ░███████ ░░█████ ░███ -░███ ░███ ░███ ░███░███ ░███ ░███ ███ ░███ ░███░░░ ░░░░███ ░███ ███ -█████ █████░░██████ ░░██████ ░░█████ █████░░██████ ██████ ░░█████ -░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░░ -██████ █████ █████ █████ ███ -░░██████ ░░███ ░░███ ░░███ ░░░ -░███░███ ░███ ░███ ░███ ████ █████████████ -░███░░███░███ ░███ ░███ ░░███ ░░███░░███░░███ -░███ ░░██████ ░░███ ███ ░███ ░███ ░███ ░███ -░███ ░░█████ ░░░█████░ ░███ ░███ ░███ ░███ -█████ ░░█████ ░░███ █████ █████░███ █████ -░░░░░ ░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ - -]] + LOGO = table.concat(vim.fn.readfile(vim.fn.stdpath("config") .. "/logo/tall.txt"), "\n") + elseif vim.fn.winwidth(0) >= 50 then + LOGO = table.concat(vim.fn.readfile(vim.fn.stdpath("config") .. "/logo/small.txt"), "\n") else - LOGO = [[ -░█▀▄░█▀█░█▀█░▀█▀░▀█▀░█▀▀░█▀▀░▀█▀░░░█▀█░█░█░▀█▀░█▄█ -░█▀▄░█░█░█░█░░█░░░█░░█▀▀░▀▀█░░█░░░░█░█░▀▄▀░░█░░█░█ -░▀░▀░▀▀▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀▀▀░░▀░░░░▀░▀░░▀░░▀▀▀░▀░▀ -]] + LOGO = table.concat(vim.fn.readfile(vim.fn.stdpath("config") .. "/logo/tiny.txt"), "\n") end - LOGO = string.rep("\n", 8) .. LOGO .. "\n\n" + LOGO = "\n\n" .. LOGO .. "\n\n" local opts = { theme = "doom", hide = { @@ -95,4 +71,3 @@ return { return opts end, } -