Skip to content

Commit

Permalink
attempting to setup chezmoi.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-motard committed Mar 15, 2024
1 parent 431e94e commit a6d119d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dot_config/nvim/lua/config/autocmds.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-- 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
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
callback = function()
vim.schedule(require("chezmoi.commands.__edit").watch)
end,
})
9 changes: 9 additions & 0 deletions dot_config/nvim/lua/plugins/chezmoi.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
return {
"xvzc/chezmoi.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("chezmoi").setup({
-- your configurations
})
end,
}
9 changes: 9 additions & 0 deletions dot_config/nvim/lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
return {
"nvim-telescope/telescope.nvim",
-- keys = {
-- { "<C-Tab>", "<cmd>Telescope buffers<cr>", desc = "test" },
-- },
config = function(_, opts)
require("telescope").load_extension("chezmoi")
end,
}

0 comments on commit a6d119d

Please sign in to comment.