diff --git a/docs/best-practices/accelerating-dotfiles-debugging.md b/docs/best-practices/accelerating-dotfiles-debugging.md index 2416a87..f1c2b3e 100644 --- a/docs/best-practices/accelerating-dotfiles-debugging.md +++ b/docs/best-practices/accelerating-dotfiles-debugging.md @@ -25,4 +25,4 @@ nvim-test: nvim-clean Now, when I need to quickly test my Neovim configuration after making changes, I simply run `just nvim-test`. Once testing is complete, I execute `just nvim-clean`, followed by redeploying the configuration using `nixos-rebuild`. This allows for swift testing and seamless restoration of the configuration. - +This method is effective under the condition that your Dotfiles content is not generated by Nix. For instance, my Emacs/Neovim configurations are native and are linked to the appropriate locations solely through Nix Home-Manager's `home.file` or `xdg.configFile`. diff --git a/docs/zh/best-practices/accelerating-dotfiles-debugging.md b/docs/zh/best-practices/accelerating-dotfiles-debugging.md index d747597..ff5e04a 100644 --- a/docs/zh/best-practices/accelerating-dotfiles-debugging.md +++ b/docs/zh/best-practices/accelerating-dotfiles-debugging.md @@ -26,5 +26,5 @@ nvim-test: nvim-clean 然后在需要快速测试 Neovim 配置时,每次修改完配置后,跑一下 `just nvim-test`,我的配置就更新了。 测试完毕后,运行下 `just nvim-clean`,再重新用 `nixos-rebuild` 部署下配置,就完成了配置的还原。 - +这种方法能生效的前提是,你的 Dotfiles 内容不是由 Nix 生成的,比如我的 Emacs/Neovim 配置都是原生的,仅通过 Nix Home-Manager 的 `home.file` 或 `xdg.configFile` 将它们链接到正确的位置。