edit the config structure to use modules rather than sets

This commit is contained in:
Michael Flossmann 2024-08-22 09:53:36 +02:00
parent e4255f0817
commit 4bdb8fdc60
4 changed files with 32 additions and 5 deletions

View file

@ -1,5 +1,24 @@
{ {lib, ...}:{
# TODO: Make colorscheme configurable
colorscheme = lib.mkOverride 500 "everforest";
colorschemes = { 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 = { catppuccin = {
enable = true; enable = true;
@ -8,6 +27,13 @@
# Needed to keep terminal transparency, if any # Needed to keep terminal transparency, if any
transparent_background = false; transparent_background = false;
styles = {
keywords = [ "italic" ];
conditionals = [ "italic" ];
functions = [ "italic" ];
loops = [ "italic" ];
};
}; };
}; };
}; };

View file

@ -9,5 +9,6 @@ let
) )
(builtins.readDir ./.) (builtins.readDir ./.)
); );
in in {
lib.mkMerge (map (file: import ./${file}) definitions) imports = map (file: import ./${file}) definitions;
}

View file

@ -1,4 +1,4 @@
{ _: {
keymaps = keymaps =
(import ./buffers.nix) (import ./buffers.nix)
++ (import ./diagnostics.nix) ++ (import ./diagnostics.nix)

View file

@ -1,7 +1,7 @@
# Neovim options # Neovim options
# Use :options to get the list of all options # Use :options to get the list of all options
# Use :h <option> to load help for given <option> # Use :h <option> to load help for given <option>
{ _:{
opts = { opts = {
# Don't stop backspace at insert # Don't stop backspace at insert
backspace.__raw = '' backspace.__raw = ''