feat: add makefile targets to compare local and repo configs

This commit is contained in:
João Paulo Dubas 2025-06-21 22:42:11 -03:00
parent c0234d5ae4
commit 9841cbdecb
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:5HaPRx+Z8Eornc4BTBERSgNxoJQR09Ckn0dMtEnxrMY

View File

@ -16,6 +16,14 @@ patch_init_lua: ## create a patch file with the changes made in kickstart's init
patch_init_lua_dry_run: ## show the changes made in kickstart's init.lua file
@cd $(neovim_config_dir) && git diff --patch init.lua
.PHONY: diff_mise_config
diff_mise_config: ## compare host's mise config with repository's config
@nvim -d ~/.config/mise/config.toml ./config/mise/config.toml
.PHONY: diff_custom_neovim_config
diff_custom_neovim_config: ## compare host's custom neovim config with repository's config
@nvim -d ~/.config/nvim/lua/custom/plugins/init.lua ./config/nvim/lua/custom/plugins/init.lua
.PHONY: help
help: ## show help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'