mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: back to fugitive
This commit is contained in:
parent
cd71c6519e
commit
867159343a
10 changed files with 107 additions and 130 deletions
|
@ -1,41 +1,31 @@
|
|||
return {
|
||||
{
|
||||
"alker0/chezmoi.vim",
|
||||
lazy = false,
|
||||
init = function()
|
||||
-- This option is required.
|
||||
vim.g["chezmoi#use_tmp_buffer"] = true
|
||||
end,
|
||||
},
|
||||
{
|
||||
"xvzc/chezmoi.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("chezmoi").setup({
|
||||
-- your configurations
|
||||
edit = {
|
||||
watch = true, -- Set true to automatically apply on save.
|
||||
force = true, -- Set true to force apply. Works only when watch = true.
|
||||
},
|
||||
notification = {
|
||||
on_open = true, -- vim.notify when start editing chezmoi-managed file.
|
||||
on_apply = true, -- vim.notify on apply.
|
||||
},
|
||||
})
|
||||
"xvzc/chezmoi.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("chezmoi").setup({
|
||||
-- your configurations
|
||||
edit = {
|
||||
watch = true, -- Set true to automatically apply on save.
|
||||
force = true, -- Set true to force apply. Works only when watch = true.
|
||||
},
|
||||
notification = {
|
||||
on_open = true, -- vim.notify when start editing chezmoi-managed file.
|
||||
on_apply = true, -- vim.notify on apply.
|
||||
},
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
|
||||
callback = function()
|
||||
-- invoke with vim.schedule() for better startup time
|
||||
vim.schedule(require("chezmoi.commands.__edit").watch)
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
|
||||
callback = function()
|
||||
-- invoke with vim.schedule() for better startup time
|
||||
vim.schedule(require("chezmoi.commands.__edit").watch)
|
||||
end,
|
||||
})
|
||||
|
||||
-- Auto-apply chezmoi changes
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
|
||||
command = [[silent! !chezmoi apply --source-path "%"]],
|
||||
})
|
||||
end,
|
||||
},
|
||||
-- Auto-apply chezmoi changes
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
|
||||
command = [[silent! !chezmoi apply --source-path "%"]],
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue