summaryrefslogtreecommitdiffstats
path: root/pgcli/pgclirc
diff options
context:
space:
mode:
authorEero Ruohola <eero.ruohola@icloud.com>2021-02-11 01:06:19 +0200
committerGitHub <noreply@github.com>2021-02-10 15:06:19 -0800
commit87ffae295edf4fb2a9c33c552b12f09921def29f (patch)
tree18a0adfcd6d69c7516bac02c841cc2e48e20e7b4 /pgcli/pgclirc
parent000102ef9b617e3da1f99d0b637602205304db11 (diff)
Fix issue where `syntax_style` config value would not have any effect (#1241)
These config properties got introduced in 41dd24e8 as a means to have more granular control over the syntax highlighting. The problem is that these cannot be in the default config file since `get_config()` always reads both the default config file and the user specified one, and there is no way to unset these variables in the user specified config file to restore their default behavior. Even if there would be a way, it wouldn't be intuitive at all to be required to unset some random settings under the `[colors]` section just to be able to use the well documented `syntax_style` setting. Note that one *can* still set these three lines in their user config file if they want to utilize them. Resolves #1212
Diffstat (limited to 'pgcli/pgclirc')
-rw-r--r--pgcli/pgclirc9
1 files changed, 6 insertions, 3 deletions
diff --git a/pgcli/pgclirc b/pgcli/pgclirc
index e97afdab..d9a8c2b4 100644
--- a/pgcli/pgclirc
+++ b/pgcli/pgclirc
@@ -170,9 +170,12 @@ arg-toolbar = 'noinherit bold'
arg-toolbar.text = 'nobold'
bottom-toolbar.transaction.valid = 'bg:#222222 #00ff5f bold'
bottom-toolbar.transaction.failed = 'bg:#222222 #ff005f bold'
-literal.string = '#ba2121'
-literal.number = '#666666'
-keyword = 'bold #008000'
+# These three values can be used to further refine the syntax highlighting.
+# They are commented out by default, since they have priority over the theme set
+# with the `syntax_style` setting and overriding its behavior can be confusing.
+# literal.string = '#ba2121'
+# literal.number = '#666666'
+# keyword = 'bold #008000'
# style classes for colored table output
output.header = "#00ff5f bold"