users/foo-dogsquared/programs/nixvim: add miscellaneous settings

This commit is contained in:
Gabriel Arazas 2024-02-14 18:55:58 +08:00
parent 434a4e90aa
commit 881af63a03
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 27 additions and 0 deletions

View File

@ -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;
};
};

View File

@ -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;
}