Compare commits
2 Commits
c5607f5291
...
210763ae2d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
210763ae2d | ||
|
|
9629c3ba25 |
@@ -20,6 +20,7 @@ vim.keymap.set("n", "<space>", "zz")
|
||||
vim.keymap.set("n", "<leader>w", ":update<cr>")
|
||||
vim.keymap.set("n", "<c-p>", ":Pick files<cr>")
|
||||
vim.keymap.set("n", "<leader>h", ":Pick help<cr>")
|
||||
vim.keymap.set("n", "<leaver>cz", function() require("chezmoi.pick").mini() end) -- Pick from chezmoi managed files
|
||||
|
||||
vim.pack.add(
|
||||
{
|
||||
@@ -91,5 +92,38 @@ vim.diagnostic.config({ virtual_text = false })
|
||||
|
||||
-- Chezmoi
|
||||
require("chezmoi").setup {
|
||||
|
||||
edit = {
|
||||
watch = false,
|
||||
force = false,
|
||||
ignore_patterns = {
|
||||
"run_onchange_.*",
|
||||
"run_once_.*",
|
||||
"%.chezmoiignore",
|
||||
"%.chezmoitemplate",
|
||||
-- Add custom patterns here
|
||||
},
|
||||
},
|
||||
events = {
|
||||
on_open = {
|
||||
notification = {
|
||||
enable = true,
|
||||
msg = "Opened a chezmoi-managed file",
|
||||
opts = {},
|
||||
},
|
||||
},
|
||||
on_watch = {
|
||||
notification = {
|
||||
enable = true,
|
||||
msg = "This file will be automatically applied",
|
||||
opts = {},
|
||||
},
|
||||
},
|
||||
on_apply = {
|
||||
notification = {
|
||||
enable = true,
|
||||
msg = "Successfully applied",
|
||||
opts = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user