From 4bdb8fdc60de9d1e46d4314c84173559db42d6bf Mon Sep 17 00:00:00 2001 From: Michael Flossmann Date: Thu, 22 Aug 2024 09:53:36 +0200 Subject: [PATCH 01/18] edit the config structure to use modules rather than sets --- config/colorscheme.nix | 28 +++++++++++++++++++++++++++- config/default.nix | 5 +++-- config/keymaps/default.nix | 2 +- config/options.nix | 2 +- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/config/colorscheme.nix b/config/colorscheme.nix index a6b4a74..8433717 100644 --- a/config/colorscheme.nix +++ b/config/colorscheme.nix @@ -1,5 +1,24 @@ -{ +{lib, ...}:{ + # TODO: Make colorscheme configurable + colorscheme = lib.mkOverride 500 "everforest"; + colorschemes = { + kanagawa.enable = true; + nord.enable = true; + tokyonight = { + enable = true; + settings = { + style = "storm"; + light_style = "day"; + transparent = false; + }; + }; + everforest = { + enable = true; + settings = { + enable_italic = 1; + }; + }; catppuccin = { enable = true; @@ -8,6 +27,13 @@ # Needed to keep terminal transparency, if any transparent_background = false; + + styles = { + keywords = [ "italic" ]; + conditionals = [ "italic" ]; + functions = [ "italic" ]; + loops = [ "italic" ]; + }; }; }; }; diff --git a/config/default.nix b/config/default.nix index a19604a..c794b51 100644 --- a/config/default.nix +++ b/config/default.nix @@ -9,5 +9,6 @@ let ) (builtins.readDir ./.) ); -in -lib.mkMerge (map (file: import ./${file}) definitions) +in { + imports = map (file: import ./${file}) definitions; +} diff --git a/config/keymaps/default.nix b/config/keymaps/default.nix index 4fb1a61..2d161d8 100644 --- a/config/keymaps/default.nix +++ b/config/keymaps/default.nix @@ -1,4 +1,4 @@ -{ +_: { keymaps = (import ./buffers.nix) ++ (import ./diagnostics.nix) diff --git a/config/options.nix b/config/options.nix index 6170bdc..fd6ec50 100644 --- a/config/options.nix +++ b/config/options.nix @@ -1,7 +1,7 @@ # Neovim options # Use :options to get the list of all options # Use :h