-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nvim): introducing chezmoi plugins
- Loading branch information
1 parent
ab84f23
commit 625b85b
Showing
9 changed files
with
74 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
-- Autocmds are automatically loaded on the VeryLazy event | ||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua | ||
-- Add any additional autocmds here | ||
|
||
-- Chezmoi | ||
local chezmoi_worktree = vim.env.HOME .. "/.local/share/chezmoi/**" | ||
-- chezmoi_worktree = vim.api.nvim_exec2( | ||
-- "!chezmoi execute-template '{{.chezmoi.workingTree}}/**'", -- HACK: abusing chezmoi template execution | ||
-- { output = false } | ||
-- )[0] | ||
-- vim.print(chezmoi_worktree) -- ize ize ize | ||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { | ||
pattern = { chezmoi_worktree }, | ||
callback = function() | ||
vim.schedule(require("chezmoi.commands.__edit").watch) | ||
end, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
return { | ||
{ | ||
"alker0/chezmoi.vim", -- For syntax highlighting | ||
lazy = false, | ||
init = function() | ||
-- This option is required. | ||
vim.g["chezmoi#use_tmp_buffer"] = true | ||
-- add other options here if needed. | ||
end, | ||
}, | ||
{ | ||
"xvzc/chezmoi.nvim", -- For chezmoi-managed file editing, applying | ||
dependencies = { "nvim-lua/plenary.nvim" }, | ||
config = function() | ||
require("chezmoi").setup({ | ||
-- your configurations | ||
}) | ||
end, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
column_width = 79 |