mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: move chezmoi autocmd to the plugin file
This commit is contained in:
parent
b265dacc53
commit
72f903d231
3 changed files with 14 additions and 14 deletions
|
@ -39,13 +39,6 @@ vim.api.nvim_create_autocmd("BufWritePre", {
|
|||
command = [[%s/\s\+$//e]],
|
||||
})
|
||||
|
||||
-- Auto-apply chezmoi changes
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
group = MZuninoGroup,
|
||||
pattern = "~/.local/share/chezmoi/*",
|
||||
command = [[silent! !chezmoi apply --source-path "%"]],
|
||||
})
|
||||
|
||||
-- Bigfile detection
|
||||
vim.filetype.add({
|
||||
pattern = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue