feat: add makefile targets to compare local and repo configs
This commit is contained in:
parent
c0234d5ae4
commit
9841cbdecb
8
Makefile
8
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}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user