diff --git a/home/.config/nvim/lua/plugins/alpha.lua b/home/.config/nvim/lua/plugins/alpha.lua new file mode 100644 index 00000000..d92563e7 --- /dev/null +++ b/home/.config/nvim/lua/plugins/alpha.lua @@ -0,0 +1,10 @@ +-- Startup dashboard +--- @type LazyPluginSpec +return { + "goolord/alpha-nvim", + config = function() + local alpha = require("alpha") + local theta = require("alpha.themes.theta") + alpha.setup(theta.config) + end, +} diff --git a/home/.config/nvim/lua/plugins/dashboard.lua b/home/.config/nvim/lua/plugins/dashboard.lua deleted file mode 100644 index 7a6b23a2..00000000 --- a/home/.config/nvim/lua/plugins/dashboard.lua +++ /dev/null @@ -1,32 +0,0 @@ --- Startup dashboard ---- @type LazyPluginSpec -return { - "glepnir/dashboard-nvim", - event = "VimEnter", - dependencies = { "kyazdani42/nvim-web-devicons" }, - opts = { - theme = "hyper", - config = { - week_header = { - enable = true, - }, - shortcut = { - { - icon = "🧲 ", - desc = "Update", - group = "@property", - action = "Lazy update", - key = "u", - }, - }, - project = { - enable = true, - limit = 8, - label = "Projects", - action = function(path) - require("telescope.builtin").find_files({ cwd = path }) - end, - }, - }, - }, -} diff --git a/home/.config/nvim/lua/plugins/indent-blankline.lua b/home/.config/nvim/lua/plugins/indent-blankline.lua index c9c0d2ad..8ddab8c7 100644 --- a/home/.config/nvim/lua/plugins/indent-blankline.lua +++ b/home/.config/nvim/lua/plugins/indent-blankline.lua @@ -8,7 +8,7 @@ return { filetypes = { "", "checkhealth", - "dashboard", + "alpha", "git", "gitcommit", "TelescopePrompt", diff --git a/home/.config/nvim/lua/plugins/telescope.lua b/home/.config/nvim/lua/plugins/telescope.lua index 42d9ad5a..bc9ce9e4 100644 --- a/home/.config/nvim/lua/plugins/telescope.lua +++ b/home/.config/nvim/lua/plugins/telescope.lua @@ -17,6 +17,13 @@ return { -- cd plugin for telescope "zane-/cder.nvim", + + -- Switch to a project + { + "ahmedkhalf/project.nvim", + main = "project_nvim", + config = true, + }, }, opts = { -- Set layout to vertical @@ -77,6 +84,11 @@ return { "", "Telescope live_grep", }, + { + desc = "Change to a project", + "", + "Telescope projects", + }, }, config = function(_, opts) local telescope = require("telescope") @@ -86,5 +98,6 @@ return { telescope.load_extension("fzf") telescope.load_extension("ui-select") telescope.load_extension("cder") + telescope.load_extension("projects") end, }