nixos-config/configs/home-manager/foo-dogsquared/modules/programs/nixvim/misc.nix

40 lines
839 B
Nix
Raw Normal View History

{ config, lib, pkgs, hmConfig, ... }:
let
userConfig = hmConfig.users.foo-dogsquared;
in
{
2024-02-25 10:20:13 +00:00
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 = userConfig.programs.browsers.plugins.firenvim.enable;
settings = {
localSettings.".*" = {
selector = "textarea";
content = "text";
};
};
};
plugins.legendary-nvim = {
enable = true;
integrations.smart-splits.enable = true;
};
# Make it work.
plugins.smart-splits.enable = true;
# Project-specific Neovim configurations. Fancy.
globals.exrc = true;
}