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
return {
gh = "/home/luca",
gch = "/home/luca/.cache",
gcf = "/home/luca/.config",
gdt = "/home/luca/.local/share",
gst = "/home/luca/.local/state",
gsc = "/home/luca/.local/bin",
gle = "/home/luca/.local/libexec",
gcf = "~/.config",
gch = "~/.cache",
gco = "~/Documents/dev",
gdk = "~/Desktop",
gdl = "~/Downloads",
gdm = "~/Documents",
gds = "~/.local/share/stow/dots",
gdt = "~/.local/share",
ge = "/etc",
gh = "~",
glo = "/usr/local",
gle = "~/.local/libexec",
glg = "/var/log",
gmn = "/mnt",
gco = "/home/luca/Documents/dev",
gdl = "/home/luca/Downloads",
gdm = "/home/luca/Documents",
gdk = "/home/luca/Desktop",
gms = "/home/luca/Music",
gpc = "/home/luca/Pictures",
gvd = "/home/luca/Videos",
gds = "/home/luca/.local/share/stow/dots",
glg = "/home/luca/.local/log",
gsv = "/home/luca/.local/sv",
gms = "~/Music",
gpc = "~/Pictures",
gr = "/",
gsc = "~/.local/bin",
gst = "~/.local/state",
gsv = "~/.local/sv",
gvd = "~/Videos",
}

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",
opts = function(_, opts)
local center = require("config.ui").buttons
local banners = require("config.ui").banners
local center = {
{
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
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"

View File

@ -7,7 +7,7 @@ nvim=${XDG_CONFIG_HOME}/nvim/lua/config/shortcuts.lua
clean() {
echo "# NOTE: Managed by shortcuts script" >"$zsh"
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() {