utility/nix-develop: init

This commit is contained in:
alfarel 2025-02-25 21:16:32 -05:00 committed by raf
commit 9209a9da37
6 changed files with 38 additions and 0 deletions

View file

@ -12,6 +12,7 @@
./motion
./multicursors
./new-file-template
./nix-develop
./outline
./preview
./surround

View file

@ -0,0 +1,12 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.nix-develop;
in {
vim = mkIf cfg.enable {
startPlugins = ["nix-develop-nvim"];
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./config.nix
./nix-develop.nix
];
}

View file

@ -0,0 +1,5 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.vim.utility.nix-develop.enable = mkEnableOption "in-neovim `nix develop`, `nix shell`, and more using `nix-develop.nvim`";
}