Added Chezmoi config dotfiles
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
require("settings")
|
||||
require("keymaps")
|
||||
require("autocmd")
|
||||
|
||||
-- Plugins
|
||||
require("lazy-nvim")
|
||||
|
6
home/private_dot_config/nvim/lua/autocmd.lua
Normal file
6
home/private_dot_config/nvim/lua/autocmd.lua
Normal 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 "%"',
|
||||
})
|
@ -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 },
|
||||
|
||||
|
Reference in New Issue
Block a user