From 23d9debfdc43c996a1b0de94ebee0e2cde5ad79a Mon Sep 17 00:00:00 2001 From: Flameopathic Date: Mon, 9 Dec 2024 13:04:38 -0500 Subject: [PATCH] vscode: extensive fonts --- modules/vscode/hm.nix | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/modules/vscode/hm.nix b/modules/vscode/hm.nix index 51d6626f..e738b3c7 100644 --- a/modules/vscode/hm.nix +++ b/modules/vscode/hm.nix @@ -27,8 +27,27 @@ in { extensions = [ themeExtension ]; userSettings = { "workbench.colorTheme" = "Stylix"; - "terminal.integrated.fontFamily" = "'${monospace.name}'"; - "editor.fontFamily" = "'${monospace.name}'"; + "editor.fontFamily" = monospace.name; + "editor.inlayHints.fontFamily" = monospace.name; + "editor.inlineSuggest.fontFamily" = monospace.name; + "scm.inputFontFamily" = monospace.name; + "debug.console.fontFamily" = monospace.name; + "markdown.preview.fontFamily" = sansSerif.name; + "chat.editor.fontFamily" = monospace.name; + + # 4/3 factor used for pt to px; + "editor.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5); + "debug.console.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5); + "markdown.preview.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5); + "terminal.integrated.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5); + "chat.editor.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5); + + # other factors (9/14, 13/14, 56/14) based on default for given value + # divided by default for `editor.fontSize` (14) from + # https://code.visualstudio.com/docs/getstarted/settings#_default-settings. + "editor.minimap.sectionHeaderFontSize" = builtins.floor (sizes.terminal * 4 / 3 * 9 / 14 + 0.5); + "scm.inputFontSize" = builtins.floor (sizes.terminal * 4 / 3 * 13 / 14 + 0.5); + "screencastMode.fontSize" = builtins.floor (sizes.terminal * 4 / 3 * 56 / 14 + 0.5); }; }; };