Compare commits
No commits in common. "813283badf2a2a5c3fd84958d654508eb423721c" and "3b6e09c17f2e6ce1c68a3c7d6f5c0d4f1bb24f31" have entirely different histories.
813283badf
...
3b6e09c17f
2 changed files with 21 additions and 25 deletions
|
@ -1,10 +1,8 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/snacks.nvim",
|
"nvimdev/dashboard-nvim",
|
||||||
opts = {
|
opts = function(_, opts)
|
||||||
dashboard = {
|
local logo = [[
|
||||||
preset = {
|
|
||||||
header = [[
|
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⡤⠴⠶⠶⠶⠶⠦⢤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⡤⠴⠶⠶⠶⠶⠦⢤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⠶⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⠶⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⣠⠞⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠳⣄⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⣠⠞⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠳⣄⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
@ -24,24 +22,21 @@ return {
|
||||||
⠀⠀⠀⠀⠀⠙⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠙⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠙⢦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡴⠋⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠙⢦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡴⠋⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠶⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⠶⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠶⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⠶⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠓⠲⠶⠶⠶⠶⠖⠚⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠓⠲⠶⠶⠶⠶⠖⠚⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]]
|
||||||
]],
|
|
||||||
-- stylua: ignore
|
-- TODO::
|
||||||
---@type snacks.dashboard.Item[]
|
-- originally used to set highlight group to change header color in alpha
|
||||||
keys = {
|
-- now would need to maybe use an AutoCmd to change DashboardHeader
|
||||||
{ icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
|
|
||||||
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
-- math.randomseed(os.time())
|
||||||
{ icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
|
-- local function pick_color()
|
||||||
{ icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
|
-- local colors = { "String", "Identifier", "Keyword", "Number" }
|
||||||
{ icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
|
-- return colors[math.random(#colors)]
|
||||||
{ icon = " ", key = "s", desc = "Restore Session", section = "session" },
|
-- end
|
||||||
{ icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
|
--
|
||||||
{ icon = " ", key = "l", desc = "Lazy", action = ":Lazy" },
|
opts.config.header = vim.split(logo, "\n")
|
||||||
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
return opts
|
||||||
},
|
end,
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/edgy.nvim",
|
"folke/edgy.nvim",
|
||||||
|
|
|
@ -373,7 +373,7 @@
|
||||||
function my_git_formatter() {
|
function my_git_formatter() {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
||||||
if ! _p9k_upglob '.jj/*'; then
|
if ! [[ $(_p9k_upglob '.jj/') ]] then
|
||||||
typeset -g my_git_format=""
|
typeset -g my_git_format=""
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -1673,8 +1673,9 @@
|
||||||
concat(
|
concat(
|
||||||
separate(" ",
|
separate(" ",
|
||||||
format_short_change_id_with_hidden_and_divergent_info(self),
|
format_short_change_id_with_hidden_and_divergent_info(self),
|
||||||
|
format_short_commit_id(commit_id),
|
||||||
if(conflict, label("conflict", "conflict")),
|
if(conflict, label("conflict", "conflict")),
|
||||||
if(empty, label("empty", "(E)")),
|
if(empty, label("empty", "(empty)")),
|
||||||
if(description, description.first_line(),label(if(empty, "empty"), description_placeholder),
|
if(description, description.first_line(),label(if(empty, "empty"), description_placeholder),
|
||||||
)))'
|
)))'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue