add chezmoi plugin, change keymaps

This commit is contained in:
insects 2024-07-23 16:44:41 +02:00
parent 1a87b4c161
commit 4507afcab3
2 changed files with 1 additions and 24 deletions

View file

@ -1,24 +0,0 @@
-- 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" },
},
}

View file

@ -4,5 +4,6 @@ return {
"nvim-telescope/telescope.nvim",
keys = {
{ "<leader><space>", "<cmd>Telescope find_files<cr>", desc = "Find files" },
{ "<leader>qc", "<cmd>Telescope chezmoi<cr>", desc = "Find in dotfiles" },
},
}