From 27f2c685ede2ada78e64401b4ac9718bc79cc068 Mon Sep 17 00:00:00 2001 From: samedamci Date: Mon, 18 May 2020 13:15:23 +0200 Subject: [PATCH] Add bat config with colorscheme based on my NeoVim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also edit 'f' script - use bat instead of cat. Unfortunetly I can't set this colors 1:1. 😥 --- .config/bat/config | 20 ++ .config/bat/themes/colordamci.tmTheme | 277 ++++++++++++++++++++++++++ .local/bin/scripts/f | 2 +- 3 files changed, 298 insertions(+), 1 deletion(-) create mode 100644 .config/bat/config create mode 100644 .config/bat/themes/colordamci.tmTheme diff --git a/.config/bat/config b/.config/bat/config new file mode 100644 index 0000000..30c53b5 --- /dev/null +++ b/.config/bat/config @@ -0,0 +1,20 @@ +# vim: ft=config + +--theme="colordamci" +--italic-text=always +--decorations=never +--color=always + +# Uncomment the following line to disable automatic paging: +#--paging=never + +# Uncomment the following line if you are using less version >= 551 and want to +# enable mouse scrolling support in `bat` when running inside tmux. This might +# disable text selection, unless you press shift. +#--pager="--RAW-CONTROL-CHARS --quit-if-one-screen --mouse" + +# Syntax mappings: map a certain filename pattern to a language. +# Example 1: use the C++ syntax for .ino files +# Example 2: Use ".gitignore"-style highlighting for ".ignore" files +#--map-syntax "*.ino:C++" +#--map-syntax ".ignore:Git Ignore" diff --git a/.config/bat/themes/colordamci.tmTheme b/.config/bat/themes/colordamci.tmTheme new file mode 100644 index 0000000..f9753f5 --- /dev/null +++ b/.config/bat/themes/colordamci.tmTheme @@ -0,0 +1,277 @@ + + + + + name + colordamci + settings + + + settings + + background + #0E0F14 + caret + #F8F8F0 + foreground + #F8F8F2 + invisibles + #3B3A32 + lineHighlight + #3E3D32 + selection + #49483E + + + + name + Comment + scope + comment + settings + + foreground + #92AD4A + + + + name + String + scope + string + settings + + foreground + #CF5252 + + + + name + Number + scope + constant.numeric + settings + + foreground + #AE81FF + + + + name + Built-in constant + scope + constant.language + settings + + foreground + #C9895B + + + + name + User-defined constant + scope + constant.character, constant.other + settings + + foreground + #AF5FFF + + + + name + Variable + scope + variable + settings + + + + + name + Keyword + scope + keyword + settings + + foreground + #AB6BA6 + + + + name + Storage + scope + storage + settings + + foreground + #F92672 + + + + name + Storage type + scope + storage.type + settings + + foreground + #AB6BA6 + fontStyle + italic + + + + name + Class name + scope + entity.name.class + settings + + foreground + #D7AF87 + + + + name + Inherited class + scope + entity.other.inherited-class + settings + + foreground + #FFFFFF + + + + name + Function name + scope + entity.name.function + settings + + fontStyle + + foreground + #D7AF87 + + + + name + Function argument + scope + variable.parameter + settings + + foreground + #FFFFFF + + + + name + Tag name + scope + entity.name.tag + settings + + fontStyle + + foreground + #F92672 + + + + name + Tag attribute + scope + entity.other.attribute-name + settings + + fontStyle + + foreground + #A6E22E + + + + name + Library function + scope + support.function + settings + + foreground + #D7AF87 + + + + name + Library constant + scope + support.constant + settings + + fontStyle + + foreground + #66D9EF + + + + name + Library class/type + scope + support.type, support.class + settings + + foreground + #6F97B8 + fontStyle + bold + + + + name + Library variable + scope + support.other.variable + settings + + + + + name + Invalid + scope + invalid + settings + + background + #F92672 + foreground + #F8F8F0 + + + + name + Invalid deprecated + scope + invalid.deprecated + settings + + background + #AE81FF + foreground + #F8F8F0 + + + + uuid + D8D5E82E-3D5B-46B5-B38E-8C841C21347D + colorSpaceName + sRGB + semanticClass + theme.dark.monokai + + diff --git a/.local/bin/scripts/f b/.local/bin/scripts/f index 4a50d15..a8e59e2 100755 --- a/.local/bin/scripts/f +++ b/.local/bin/scripts/f @@ -2,5 +2,5 @@ # Search for files in local directory and edit selected in default editor. -find . -type f | fzf --preview 'cat {}' --height 25 --layout reverse | \ +find . -type f | fzf --preview 'bat {}' --height 25 --layout reverse | \ xargs -r "$EDITOR"