From 9fe182d987aa8d658f87ad02f933213dae647ae2 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sun, 22 Jun 2025 01:43:21 +0000 Subject: [PATCH] feat: add makefile targets to compare host and repo configs (#248) Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/248 Co-authored-by: Joao P Dubas Co-committed-by: Joao P Dubas --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 3e25d2b..8bfcf19 100644 --- a/Makefile +++ b/Makefile @@ -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}'