Added Chezmoi config dotfiles

This commit is contained in:
2024-08-25 11:28:11 +02:00
parent 7cb6bbef83
commit b444bfbe60
4 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
[edit]
hardlink = false

View File

@ -1,5 +1,6 @@
require("settings")
require("keymaps")
require("autocmd")
-- Plugins
require("lazy-nvim")

View File

@ -0,0 +1,6 @@
-- Run `chezmoi apply` every time I use `chezmoi edit`
-- https://www.chezmoi.io/user-guide/tools/editor/#use-chezmoi-with-vim
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = vim.fn.expand("~") .. "/.local/share/chezmoi/*",
command = 'silent ! chezmoi apply --exclude=scripts --source-path "%"',
})

View File

@ -17,6 +17,8 @@ require("lazy").setup({
-- Import the plugins from the "plugins/" directory
spec = { import = "plugins" },
install = { colorscheme = { "catppuccin-mocha" } },
-- Don't notify every time a plugin file changes
change_detection = { notify = false },