From 5071dbed2df736633ba33cacae49acd71188e4bb Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 15 Jun 2023 10:27:00 -0400 Subject: [PATCH] fix powerline characters --- modules/cli/default.nix | 8 ++++++-- modules/cli/powerline-chars.json | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 modules/cli/powerline-chars.json diff --git a/modules/cli/default.nix b/modules/cli/default.nix index f4a3788..f29e809 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -1,4 +1,8 @@ { config, pkgs, lib, ... }: +let + pl = lib.importJSON ./powerline-chars.json; + +in { imports = [ ./kubernetes.nix @@ -150,8 +154,8 @@ highlight GitGutterAdd ctermfg=10 highlight GitGutterChange ctermfg=11 highlight GitGutterDelete ctermfg=9 - let g:gitgutter_sign_removed = '◣' - let g:gitgutter_sign_removed_first_line = '◤' + let g:gitgutter_sign_removed = '${pl.lower_left_triangle}' + let g:gitgutter_sign_removed_first_line = '${pl.upper_left_triangle}' let g:gitgutter_sign_modified_removed = '~~' ''; }; diff --git a/modules/cli/powerline-chars.json b/modules/cli/powerline-chars.json new file mode 100644 index 0000000..9b2dc06 --- /dev/null +++ b/modules/cli/powerline-chars.json @@ -0,0 +1,5 @@ +{ + "left_hard_divider": "\uE0B0", + "lower_left_triangle": "\uE0B8", + "upper_left_triangle": "\uE0BC" +}