From be8cfae77701a4d1cc54326fb5ac5478a40f343a Mon Sep 17 00:00:00 2001 From: histalek Date: Mon, 9 Jan 2023 14:09:42 +0100 Subject: [PATCH] nvim: Add startpage --- .config/nvim/init.lua | 1 + .config/nvim/lua/plugin-setup.lua | 3 +++ .config/nvim/lua/plugins/alpha.lua | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 .config/nvim/lua/plugins/alpha.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 7253aa6..0340dbc 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -8,6 +8,7 @@ require("core.keymaps") -- Plugin configs, setup has to come first require("plugin-setup") +require("plugins.alpha") require("plugins.comment") require("plugins.nvim-autopairs") require("plugins.nvim-tree") diff --git a/.config/nvim/lua/plugin-setup.lua b/.config/nvim/lua/plugin-setup.lua index 88f20e1..c6e4d6d 100644 --- a/.config/nvim/lua/plugin-setup.lua +++ b/.config/nvim/lua/plugin-setup.lua @@ -94,6 +94,9 @@ return packer.startup({ -- Fast onscreen navigation use("ggandor/leap.nvim") + -- nvim startpage + use({ "goolord/alpha-nvim", requires = "nvim-tree/nvim-web-devicons" }) + if packer.bootstrap then require("packer").sync() end diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua new file mode 100644 index 0000000..658b85c --- /dev/null +++ b/.config/nvim/lua/plugins/alpha.lua @@ -0,0 +1,11 @@ +local alpha_status, alpha = pcall(require, "alpha") +if not alpha_status then + return +end + +local startify_status, alpha_startify = pcall(require, "alpha.themes.startify") +if not startify_status then + return +end + +alpha.setup(alpha_startify.config)