Switch from dashboard to alpha, add project.nvim telescope plugin

This commit is contained in:
Marko Korhonen 2023-11-25 15:58:35 +02:00
parent 1ce80c1347
commit e6b6534c8d
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
4 changed files with 24 additions and 33 deletions

View file

@ -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,
}

View file

@ -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,
},
},
},
}

View file

@ -8,7 +8,7 @@ return {
filetypes = {
"",
"checkhealth",
"dashboard",
"alpha",
"git",
"gitcommit",
"TelescopePrompt",

View file

@ -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 {
"<C-g>",
"<cmd>Telescope live_grep<cr>",
},
{
desc = "Change to a project",
"<C-p>",
"<cmd>Telescope projects<cr>",
},
},
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,
}