diff --git a/nvim/lua/user/plugins/core.lua b/nvim/lua/user/plugins/core.lua index 7987146..fb656e2 100644 --- a/nvim/lua/user/plugins/core.lua +++ b/nvim/lua/user/plugins/core.lua @@ -10,6 +10,32 @@ return { require("mason").setup(opts) end }, + { + "goolord/alpha-nvim", + config = function() + local icons = require'user.icons' + local alpha = require'alpha' + local dashboard = require'alpha.themes.dashboard' + + dashboard.section.header.val = { + [[ __ ]], + [[ ___ ___ ___ __ __ /\_\ ___ ___ ]], + [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]], + [[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]], + [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]], + [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]], + } + + dashboard.section.buttons.val = { + dashboard.button("e", icons.files.text .. " New file" , ":ene startinsert"), + dashboard.button("s", icons.search .. " Search files" , ":Telescope find_files"), + dashboard.button("o", icons.search .. " Old files" , ":Telescope oldfiles"), + dashboard.button("q", icons.close .. " Quit" , ":qa"), + } + + alpha.setup(dashboard.config) + end, + }, -- Icons { 'nvim-tree/nvim-web-devicons', diff --git a/nvim/lua/user/plugins/editor.lua b/nvim/lua/user/plugins/editor.lua index 956aa20..0711600 100644 --- a/nvim/lua/user/plugins/editor.lua +++ b/nvim/lua/user/plugins/editor.lua @@ -52,6 +52,10 @@ return { return { -- Align current relative number to the right. relculright = true, + ft_ignore = { + 'help', + 'alpha' + }, segments = { { text = { " " } }, { diff --git a/nvim/lua/user/plugins/ui/statusline.lua b/nvim/lua/user/plugins/ui/statusline.lua index 598b89f..e352020 100644 --- a/nvim/lua/user/plugins/ui/statusline.lua +++ b/nvim/lua/user/plugins/ui/statusline.lua @@ -30,9 +30,11 @@ return { disabled_filetypes = { statusline = { "dashboard", + "alpha", }, winbar = { "neo-tree", + "alpha" } }, -- theme = "catppuccin"