Skip to content

Commit

Permalink
feat(icon): use neovim icon in nerdfont v3.1.0 (ayamir#1072)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Chiu <charleschiu@hey.com>
  • Loading branch information
CharlesChiuGit authored and Vincent Wang committed Nov 27, 2023
1 parent 6d606dd commit 0bc8c01
Showing 1 changed file with 60 additions and 1 deletion.
61 changes: 60 additions & 1 deletion lua/modules/configs/ui/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,66 @@ return function()
return file_button_el
end

local default_mru_ignore = { "gitcommit" }
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 mru_opts = {
ignore = function(path, ext)
Expand Down

0 comments on commit 0bc8c01

Please sign in to comment.