From 881af63a03c3fab348cb18663707671ca48a18b4 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 14 Feb 2024 18:55:58 +0800 Subject: [PATCH] users/foo-dogsquared/programs/nixvim: add miscellaneous settings --- .../modules/programs/nixvim/default.nix | 6 ++++++ .../modules/programs/nixvim/misc.nix | 21 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 configs/home-manager/foo-dogsquared/modules/programs/nixvim/misc.nix diff --git a/configs/home-manager/foo-dogsquared/modules/programs/nixvim/default.nix b/configs/home-manager/foo-dogsquared/modules/programs/nixvim/default.nix index 1f9fbfbb..7cfc76b9 100644 --- a/configs/home-manager/foo-dogsquared/modules/programs/nixvim/default.nix +++ b/configs/home-manager/foo-dogsquared/modules/programs/nixvim/default.nix @@ -1,3 +1,6 @@ +# Take note, this already assumes we're using on top of an already existing +# NixVim configuration. See the declarative users configuration for more +# details. { config, lib, pkgs, ... }: let @@ -14,6 +17,7 @@ in imports = [ ./colorschemes.nix + ./misc.nix ./note-taking.nix ] ++ lib.optionals userCfg.setups.development.enable [ @@ -23,6 +27,8 @@ in ]; config = { enable = true; + + # Inherit all of the schemes. inherit (hmCfg) tinted-theming; }; }; diff --git a/configs/home-manager/foo-dogsquared/modules/programs/nixvim/misc.nix b/configs/home-manager/foo-dogsquared/modules/programs/nixvim/misc.nix new file mode 100644 index 00000000..fc01ef0f --- /dev/null +++ b/configs/home-manager/foo-dogsquared/modules/programs/nixvim/misc.nix @@ -0,0 +1,21 @@ +{ config, lib, pkgs, ... }: +{ + extraPlugins = builtins.map (path: + pkgs.runCommand "vim-plugin-bare" { } '' + mkdir -p "$out" + cp -r ${path}/* "$out" + '') + (with pkgs; [ + "${decker}/share/vim-plugins/decker" + "${fzf}/share/vim-plugins/fzf" + ]); + + # Light your browser on fire, bebe. + plugins.firenvim.enable = true; + + # Make it work. + plugins.smart-splits.enable = true; + + # Project-specific Neovim configurations. Fancy. + globals.exrc = true; +}