kakoune: be more leanient on error checking during config reload

This commit is contained in:
Leonardo Eugênio 2023-01-24 10:08:28 -03:00
parent 5a0c40df62
commit 0ff17cd6df

View file

@ -142,8 +142,9 @@ in {
]; ];
home.activation = { home.activation = {
update_kakoune = lib.hm.dag.entryAfter [ "writeBoundary" ] '' update_kakoune = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
$DRY_RUN_CMD kak -clear $DRY_RUN_CMD kak -clear &&
$DRY_RUN_CMD kak -l | xargs -r -n1 kak -e "config-source;quit" -ui dummy -c $DRY_RUN_CMD kak -l | xargs -r -n1 kak -e "config-source;quit" -ui dummy -c ||
$DRY_RUN_CMD true
''; '';
}; };
home.sessionVariables = lib.mkIf (editor == "kakoune") { home.sessionVariables = lib.mkIf (editor == "kakoune") {