Switch from dashboard to alpha, add project.nvim telescope plugin
This commit is contained in:
parent
1ce80c1347
commit
e6b6534c8d
10
home/.config/nvim/lua/plugins/alpha.lua
Normal file
10
home/.config/nvim/lua/plugins/alpha.lua
Normal 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,
|
||||
}
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -8,7 +8,7 @@ return {
|
|||
filetypes = {
|
||||
"",
|
||||
"checkhealth",
|
||||
"dashboard",
|
||||
"alpha",
|
||||
"git",
|
||||
"gitcommit",
|
||||
"TelescopePrompt",
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue