Skip to content

Commit

Permalink
fix: start ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wang committed Nov 27, 2023
1 parent 2c98f11 commit b09a1ad
Showing 1 changed file with 1 addition and 60 deletions.
61 changes: 1 addition & 60 deletions lua/modules/configs/ui/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,66 +64,7 @@ return function()
return file_button_el
end

local leader = " "
dashboard.section.buttons.val = {
button("space f c", " Scheme change", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
require("telescope.builtin").colorscheme()
end,
}),
button("space f r", " File frecency", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
require("telescope").extensions.frecency.frecency({})
end,
}),
button("space f e", "󰋚 File history", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
require("telescope.builtin").oldfiles()
end,
}),
button("space f p", " Project find", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
require("telescope").extensions.projects.projects({})
end,
}),
button("space f f", "󰈞 File find", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
require("telescope.builtin").find_files()
end,
}),
button("space f n", " File new", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
vim.api.nvim_command("enew")
end,
}),
button("space f w", " Word find", leader, nil, {
noremap = true,
silent = true,
nowait = true,
callback = function()
require("telescope.builtin").live_grep()
end,
}),
}
dashboard.section.buttons.opts.hl = "AlphaButtons"
local default_mru_ignore = { "gitcommit" }

local mru_opts = {
ignore = function(path, ext)
Expand Down

0 comments on commit b09a1ad

Please sign in to comment.