From 6f1f0e6ea75ea51038463ab7153df37fd9dd80e5 Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 19 Jun 2025 12:11:20 +0300 Subject: [PATCH] formatting --- config/colorscheme.nix | 2 +- config/default.nix | 34 +++++++++++++++++----------------- config/plugins/avante.nix | 7 +++---- config/plugins/default.nix | 5 +++-- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/config/colorscheme.nix b/config/colorscheme.nix index 18da321..9d792c8 100644 --- a/config/colorscheme.nix +++ b/config/colorscheme.nix @@ -1,6 +1,6 @@ { colorschemes = { - catppuccin = { + catppuccin = { enable = true; settings.flavor = "mocha"; }; diff --git a/config/default.nix b/config/default.nix index 474b23f..c288068 100644 --- a/config/default.nix +++ b/config/default.nix @@ -3,7 +3,7 @@ ./colorscheme.nix ./options.nix ./plugins - ]; + ]; config = { # Use as leader key @@ -35,23 +35,23 @@ ripgrep ]; - keymaps = [ - { - mode = "n"; - key = "gg"; - action = "LazyGit"; - options = { - desc = "LazyGit (root dir)"; - }; - } - ]; -extraPlugins = with pkgs.vimPlugins; [ - lazygit-nvim - ]; + keymaps = [ + { + mode = "n"; + key = "gg"; + action = "LazyGit"; + options = { + desc = "LazyGit (root dir)"; + }; + } + ]; + extraPlugins = with pkgs.vimPlugins; [ + lazygit-nvim + ]; - extraConfigLua = '' - require("telescope").load_extension("lazygit") - ''; + extraConfigLua = '' + require("telescope").load_extension("lazygit") + ''; performance = { byteCompileLua = { enable = true; diff --git a/config/plugins/avante.nix b/config/plugins/avante.nix index 53f9b01..b840d4d 100644 --- a/config/plugins/avante.nix +++ b/config/plugins/avante.nix @@ -1,9 +1,8 @@ { plugins.avante = { - - lazyLoad.settings.event = [ "DeferredUIEnter" ]; + lazyLoad.settings.event = ["DeferredUIEnter"]; settings = { - provider = "claude"; + provider = "claude"; providers = { claude = { endpoint = "https://api.anthropic.com"; @@ -15,5 +14,5 @@ }; }; }; - }; + }; } diff --git a/config/plugins/default.nix b/config/plugins/default.nix index 8e54e36..da2fe23 100644 --- a/config/plugins/default.nix +++ b/config/plugins/default.nix @@ -1,5 +1,6 @@ -{lib, ...}:{ - imports = lib.mapAttrsToList (name: path: ./. + "/${name}") +{lib, ...}: { + imports = + lib.mapAttrsToList (name: _path: ./. + "/${name}") (lib.filterAttrs (filename: kind: filename != "default.nix" && (kind == "regular" || kind == "directory")) (builtins.readDir ./.));