nix-config/dotfiles/nvim/lua/plugins/dashboard.lua
2024-08-03 22:33:30 +02:00

24 lines
651 B
Lua

-- Various dashboard adjustments
return {
"nvimdev/dashboard-nvim",
opts = function(_, opts)
-- Remove the original "config" button
table.remove(opts.config.center, 5)
-- Build a new button
local button = {
action = "Telescope find_files cwd=~/.local/share/chezmoi/",
desc = "Dotfiles",
icon = "⚙️ ",
key = "c",
}
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
table.insert(opts.config.center, 5, button)
end,
keys = {
{ "<leader>qc", "<cmd>Telescope find_files cwd=~/.local/share/chezmoi<CR>", desc = "Find in dotfiles" },
},
}