vip

VI Plus
git clone https://codeberg.org/night0721/vip
Log | Files | Refs | README | LICENSE

commit d31914433fd4fbf651b1e8cbe79465c249876c50
parent 4540698f702df9c2339e72d6a41a5c3ba71afe9d
Author: night0721 <[email protected]>
Date:   Thu,  4 Jul 2024 16:59:32 +0100

Move config in vip.h to config.h

Diffstat:
MMakefile | 4++--
Aconfig.h | 28++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -11,11 +11,11 @@ MANDIR = $(PREFIX)/share/man/man1 # Flags CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -SRC = src/*.c +SRC = src/*.c config.h INCLUDE = include $(TARGET): $(SRC) - $(CC) $(SRC) -o $@ $(CFLAGS) -I$(INCLUDE) + $(CC) $(SRC) -o $@ $(CFLAGS) -I$(INCLUDE) -I. dist: mkdir -p $(TARGET)-$(VERSION) diff --git a/config.h b/config.h @@ -0,0 +1,28 @@ +#ifndef CONFIG_H_ +#define CONFIG_H_ + +#include "syntax.h" + +#define TAB_SIZE 4 + +/* THEME */ +/* 38 and 48 is reversed as bar's color is reversed */ + +#define SURFACE_1_BG "\x1b[38;2;049;050;068m" +#define OVERLAY_0_BG "\x1b[38;2;108;112;134m" +#define BLACK_FG "\x1b[48;2;000;000;000m" +#define BLACK_BG "\x1b[38;2;000;000;000m" +#define WHITE_FG "\x1b[48;2;205;214;244m" +#define WHITE_BG "\x1b[38;2;205;214;244m" +#define BLUE_FG "\x1b[48;2;137;180;250m" +#define BLUE_BG "\x1b[38;2;137;180;250m" +#define GREEN_FG "\x1b[48;2;166;227;161m" +#define GREEN_BG "\x1b[38;2;166;227;161m" +#define PEACH_FG "\x1b[48;2;250;179;135m" +#define PEACH_BG "\x1b[38;2;250;179;135m" +#define SKY_FG "\x1b[48;2;137;220;235m" +#define SKY_BG "\x1b[38;2;137;220;235m" +#define MAUVE_BG "\x1b[38;2;203;166;247m" +#define YELLOW_BG "\x1b[38;2;249;226;175m" + +#endif