1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-06-03 13:25:44 +02:00
parent a102077452
commit 3383640dda
4 changed files with 134 additions and 138 deletions

View file

@ -1,21 +1,24 @@
-- NOTE: Managed by shortcuts script -- NOTE: Managed by shortcuts script
return { return {
gh = "/home/luca", gcf = "~/.config",
gch = "/home/luca/.cache", gch = "~/.cache",
gcf = "/home/luca/.config", gco = "~/Documents/dev",
gdt = "/home/luca/.local/share", gdk = "~/Desktop",
gst = "/home/luca/.local/state", gdl = "~/Downloads",
gsc = "/home/luca/.local/bin", gdm = "~/Documents",
gle = "/home/luca/.local/libexec", gds = "~/.local/share/stow/dots",
gdt = "~/.local/share",
ge = "/etc",
gh = "~",
glo = "/usr/local",
gle = "~/.local/libexec",
glg = "/var/log",
gmn = "/mnt", gmn = "/mnt",
gco = "/home/luca/Documents/dev", gms = "~/Music",
gdl = "/home/luca/Downloads", gpc = "~/Pictures",
gdm = "/home/luca/Documents", gr = "/",
gdk = "/home/luca/Desktop", gsc = "~/.local/bin",
gms = "/home/luca/Music", gst = "~/.local/state",
gpc = "/home/luca/Pictures", gsv = "~/.local/sv",
gvd = "/home/luca/Videos", gvd = "~/Videos",
gds = "/home/luca/.local/share/stow/dots",
glg = "/home/luca/.local/log",
gsv = "/home/luca/.local/sv",
} }

View file

@ -1,118 +0,0 @@
local M = {}
M.banners = {
[[
]],
[[
]],
[[
]],
}
M.buttons = {
-- {
-- action = LazyVim.telescope("files"),
-- desc = " Find File" .. string.rep(" ", 33),
-- icon = " ",
-- key = "f",
-- },
{
action = "enew",
desc = " New File" .. string.rep(" ", 34),
icon = "",
key = "n",
},
-- {
-- action = "Telescope live_grep",
-- desc = " Find Text" .. string.rep(" ", 33),
-- icon = " ",
-- key = "g",
-- },
-- {
-- action = "TodoTelescope",
-- desc = " Find Todo" .. string.rep(" ", 33),
-- icon = "󰱒 ",
-- key = "t",
-- },
{
action = 'lua require("persistence").load()',
desc = " Restore Session" .. string.rep(" ", 27),
icon = "",
key = "s",
},
{
action = "qa",
desc = " Quit" .. string.rep(" ", 38),
icon = "",
key = "q",
},
}
return M

View file

@ -28,8 +28,119 @@ return {
{ {
"nvimdev/dashboard-nvim", "nvimdev/dashboard-nvim",
opts = function(_, opts) opts = function(_, opts)
local center = require("config.ui").buttons local center = {
local banners = require("config.ui").banners {
action = LazyVim.telescope("files"),
desc = " Find File" .. string.rep(" ", 33),
icon = "",
key = "f",
},
{
action = "enew",
desc = " New File" .. string.rep(" ", 34),
icon = "",
key = "n",
},
{
action = "Telescope live_grep",
desc = " Find Text" .. string.rep(" ", 33),
icon = "",
key = "g",
},
{
action = "TodoTelescope",
desc = " Find Todo" .. string.rep(" ", 33),
icon = "󰱒 ",
key = "t",
},
{
action = 'lua require("persistence").load()',
desc = " Restore Session" .. string.rep(" ", 27),
icon = "",
key = "s",
},
{
action = "qa",
desc = " Quit" .. string.rep(" ", 38),
icon = "",
key = "q",
},
}
local banners = {
[[
]],
[[
]],
[[
]],
}
for _, button in ipairs(center) do for _, button in ipairs(center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc) button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s" button.key_format = " %s"

View file

@ -7,7 +7,7 @@ nvim=${XDG_CONFIG_HOME}/nvim/lua/config/shortcuts.lua
clean() { clean() {
echo "# NOTE: Managed by shortcuts script" >"$zsh" echo "# NOTE: Managed by shortcuts script" >"$zsh"
echo "# NOTE: Managed by shortcuts script" >"$lf" echo "# NOTE: Managed by shortcuts script" >"$lf"
printf "%s\n%s\n%s\n" "-- NOTE: Managed by shortcuts script" "---@class config.shortcuts" "return {" >"$nvim" printf "%s\n%s\n" "-- NOTE: Managed by shortcuts script" "return {" >"$nvim"
} }
finalize() { finalize() {