Skip to content

Commit

Permalink
chore: enable auto-save on focus change
Browse files Browse the repository at this point in the history
  • Loading branch information
z0al committed Aug 17, 2024
1 parent b874d09 commit 33fe0a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions modules/programs/helix/settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ in
theme = themeMapping.${theme};

editor = {
auto-save.after-delay = {
enable = true;
timeout = 1000;
auto-save = {
focus-lost = true;

after-delay = {
enable = true;
timeout = 5000;
};
};

auto-format = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/vscode/settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in
d.programs.vscode.settings = {
# Editor
"files.enableTrash" = true;
"files.autoSave" = "off";
"files.autoSave" = "onFocusChange";
"editor.cursorSmoothCaretAnimation" = "on";
"editor.cursorStyle" = "line";
"editor.emptySelectionClipboard" = false;
Expand Down

0 comments on commit 33fe0a6

Please sign in to comment.