From b04d128c799a41f7d8597dbcb27eb62c5cdc06ee Mon Sep 17 00:00:00 2001 From: han-tyumi Date: Sat, 5 Sep 2020 11:15:32 -0400 Subject: [PATCH] Add selectionColor & cursorAccentColor Configuration for selectionColor and cursorAccentColor has been added in order to support these remaining color configuration options consistently while also honoring the user's configuration. #35 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index e97fdda..eac2e0b 100644 --- a/index.js +++ b/index.js @@ -30,6 +30,8 @@ const nord = { const backgroundColor = nord.nord0; const foregroundColor = nord.nord4; const cursorColor = nord.nord4; +const selectionColor = cursorColor; +const cursorAccentColor = backgroundColor; const borderColor = backgroundColor; const colors = { @@ -60,6 +62,8 @@ exports.decorateConfig = config => { backgroundColor, borderColor, cursorColor: config.cursorColor || cursorColor, + selectionColor: config.selectionColor || selectionColor, + cursorAccentColor: config.cursorAccentColor || cursorAccentColor, colors, cursorShape: config.cursorShape || "BEAM", fontSize: config.fontSize || 16,